<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>&#039;corePHP&#039; Blog &#187; Dreamweaver</title>
	<atom:link href="http://www.corephp.com/blog/category/dreamweaver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.corephp.com/blog</link>
	<description>Keep up to date on what&#039;s happening at &#039;corePHP&#039;</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:36:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1.2</generator>
		<item>
		<title>Easy IE Conditional CSS with No Hacks!</title>
		<link>http://www.corephp.com/blog/easy-ie-conditional-css-with-no-hacks/</link>
		<comments>http://www.corephp.com/blog/easy-ie-conditional-css-with-no-hacks/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 13:52:48 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[XHTML+CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">index.php?option=com_wordpress&amp;p=291</guid>
		<description><![CDATA[Any serious CSS person has hacked their way through more &#8216;Internet Exploder&#8217; issues than they care to talk about. Even if there are only a few small issues to fix in an area, it can be difficult to track them &#8230; <a href="http://www.corephp.com/blog/easy-ie-conditional-css-with-no-hacks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Any serious CSS person has hacked their way through more &#8216;Internet Exploder&#8217; issues than they care to talk about. Even if there are only a few small issues to fix in an area, it can be difficult to track them through multiple style sheets (ie. conditional sheet for IE6 &amp; 7). Hacks are just bad practice, so what can you do? There is a better way! I came up with a neat little piece of code that has greatly simplified my life when dealing with cross-browser compatibility.</p>
<p><span id="more-291"></span></p>
<p>If you add a unique identifier for the IE browser that is giving you trouble, then just add the ID your CSS in order to control it with ease. Here is what you do:</p>
<p>Copy the following code and insert it just below the opening body tag of your template:</p>
<pre>&lt;!--[if IE]&gt;
&lt;div id="ie"&gt;
&lt;![endif]--&gt;
&lt;!--[if IE 6]&gt;
&lt;div id="ie6"&gt;
&lt;![endif]--&gt;
&lt;!--[if IE 7]&gt;
&lt;div id="ie7"&gt;
&lt;![endif]--&gt;
&lt;!--[if IE 8]&gt;
&lt;div id="ie8"&gt;
&lt;![endif]--&gt;</pre>
<p>Paste the next bit of code right above the ending body tag:</p>
<pre>&lt;!--[if IE 6]&gt;
&lt;/div&gt;
&lt;![endif] //--&gt;
&lt;!--[if IE 7]&gt;
&lt;/div&gt;
&lt;![endif] //--&gt;
&lt;!--[if IE 8]&gt;
&lt;/div&gt;
&lt;![endif] //--&gt;
&lt;!--[if IE]&gt;
&lt;/div&gt;
&lt;![endif]--&gt;
</pre>
<p>If you have a box displaying at different heights in Firefox and IE6, write your CSS like this:</p>
<pre>.sizebox {height:30px;}
#ie6 .sizebox {height:28px;}</pre>
<p>It is MUCH faster and easier to see what is happening with the template when you are reviewing your code to make changes. It&#8217;s better than reviewing several different style sheets to find what has been created. You will still need a separate style sheet for IE6 and IE7 so you can store the CSS that doesn&#8217;t validate. (You may need it to pound IE into shape!) I personally don&#8217;t support IE5 or 5.5, but if you support it just add those to it and you can single it out. 90% of the fixes can be done with this custom code. It&#8217;s helped me a lot and I&#8217;m sure it will help you too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corephp.com/blog/easy-ie-conditional-css-with-no-hacks/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Shortcut to converting to CSS shorthand</title>
		<link>http://www.corephp.com/blog/shortcut-to-converting-to-css-shorthand/</link>
		<comments>http://www.corephp.com/blog/shortcut-to-converting-to-css-shorthand/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 22:07:45 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://c15.corephp.comindex.php?option=com_wordpress&amp;p=15</guid>
		<description><![CDATA[I&#8217;m sure I&#8217;m not the only one who started out with CSS longhand and slowly moved toward shorthand. If you are going through old code and converting it to shorthand, try this nice (quick!) trick for making Dreamweaver do the &#8230; <a href="http://www.corephp.com/blog/shortcut-to-converting-to-css-shorthand/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="entry">
<p><span style="font-family: arial,helvetica,sans-serif;">I&#8217;m sure I&#8217;m not the only one who started out with CSS longhand and slowly moved toward shorthand. If you are going through old code and converting it to shorthand, try this nice (quick!) trick for making Dreamweaver do the dirty work for you.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">First of all, make sure your preferences are set up for shorthand by going to <strong>Preferences &gt; CSS Styles</strong>. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">Pick all the CSS that you would like to have made into shorthand. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">Make sure you have <strong>Edit Using CSS</strong> checked for this to work. Click <strong>OK</strong>. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">Now go to your style sheet and find the code you would like to convert to shorthand. If it&#8217;s a font then simply change the <em>font-family:</em> to <em>font:</em>, click on the CSS styles box, then double click on the style you just changed. When the CSS style dialog box comes up simply change or add one thing and click <strong>OK</strong>. All your font tags will be converted into the same tag. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif;">For margins and padding you just have to open the CSS dialog box and fill in the empty boxes with 0. When you click <strong>OK</strong>, they will all be converted into shorthand for the tag you edited. I personally think it&#8217;s faster to convert margins and padding by hand, but it&#8217;s a nice time saver if you are already in the dialog box.</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.corephp.com/blog/shortcut-to-converting-to-css-shorthand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

