<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Internet Explorer 6 CSS bug, margins, padding and how to fix it.</title>
	<atom:link href="http://www.ericsprojects.com/?feed=rss2&#038;p=207" rel="self" type="application/rss+xml" />
	<link>http://www.ericsprojects.com/?p=207</link>
	<description>A computer geek with a taste for sustainable living, organic food, green products, buying local, woodworking, bicycling, recycling and doing-it-yourself.</description>
	<lastBuildDate>Mon, 15 Mar 2010 20:59:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: eric</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-42045</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Mon, 15 Mar 2010 20:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-42045</guid>
		<description>Thanks Neil.  !important is clear and easy to read.  I&#039;ll think about using it if I have IE6 problems again.</description>
		<content:encoded><![CDATA[<p>Thanks Neil.  !important is clear and easy to read.  I&#8217;ll think about using it if I have IE6 problems again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-41981</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Sat, 13 Mar 2010 22:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-41981</guid>
		<description>You don&#039;t need the underscore hack to make ie6 work. What you can do is something like this:

padding: 5px !important /*all other browsers including ie 7 and 8
padding:2px /*ie 6 only */

The important hack can be a very useful method when applying hacks to ie6 alone while affecting other browsers differently</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need the underscore hack to make ie6 work. What you can do is something like this:</p>
<p>padding: 5px !important /*all other browsers including ie 7 and 8<br />
padding:2px /*ie 6 only */</p>
<p>The important hack can be a very useful method when applying hacks to ie6 alone while affecting other browsers differently</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-41171</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 03 Feb 2010 10:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-41171</guid>
		<description>Thanks for sharing, Dreamweaver shows that hack as invalid but IT WORKS!!</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, Dreamweaver shows that hack as invalid but IT WORKS!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-40871</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Fri, 22 Jan 2010 16:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-40871</guid>
		<description>Glad it helped.  I have so many people still using IE6, including my wife and people at work.  I just can&#039;t get them to upgrade past Windows 2000.</description>
		<content:encoded><![CDATA[<p>Glad it helped.  I have so many people still using IE6, including my wife and people at work.  I just can&#8217;t get them to upgrade past Windows 2000.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LinZilla</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-40857</link>
		<dc:creator>LinZilla</dc:creator>
		<pubDate>Fri, 22 Jan 2010 02:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-40857</guid>
		<description>Oh man, reading your ie6 padding issue workaround has saved me erm, like, lots of hours of my life and also saved me from having a less that optimal site. So thankyou!! 
I was on the verge of a rewrite, because of the stupid ie6 issues, adding that extra line with the &quot;_&quot; in it just saved the day. Cheers :)</description>
		<content:encoded><![CDATA[<p>Oh man, reading your ie6 padding issue workaround has saved me erm, like, lots of hours of my life and also saved me from having a less that optimal site. So thankyou!!<br />
I was on the verge of a rewrite, because of the stupid ie6 issues, adding that extra line with the &#8220;_&#8221; in it just saved the day. Cheers <img src='/wp2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TypO3 from Munich</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-35534</link>
		<dc:creator>TypO3 from Munich</dc:creator>
		<pubDate>Thu, 24 Sep 2009 09:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-35534</guid>
		<description>Hi Eric,
thanks a lot for the trick with the underscore! In order to keep the CSS valid, I  used this solution:

My container (#rightcolumn) should have a width of 200px with padding-left 5px and padding-right 5px.

1. Using the underscore trick:
#rightcolumn  {
width: 190px;
_width: 200px; /* for IE6 only, which works fine */
padding-left: 5px;
padding-right: 5px;
}

2. In order to get valid CSS and without needing any browser hack, I added a second container (#rightcontent within #rightcolumn):

CSS:
#rightcolumn {
width: 200px;
}
#rightcontent {
padding-left: 5px;
padding-right: 5px;
}

As far as I found out yet, the different padding-interpretation occurs only in combination with a fixed width or height. So I splitted width and padding in two separate containers.</description>
		<content:encoded><![CDATA[<p>Hi Eric,<br />
thanks a lot for the trick with the underscore! In order to keep the CSS valid, I  used this solution:</p>
<p>My container (#rightcolumn) should have a width of 200px with padding-left 5px and padding-right 5px.</p>
<p>1. Using the underscore trick:<br />
#rightcolumn  {<br />
width: 190px;<br />
_width: 200px; /* for IE6 only, which works fine */<br />
padding-left: 5px;<br />
padding-right: 5px;<br />
}</p>
<p>2. In order to get valid CSS and without needing any browser hack, I added a second container (#rightcontent within #rightcolumn):</p>
<p>CSS:<br />
#rightcolumn {<br />
width: 200px;<br />
}<br />
#rightcontent {<br />
padding-left: 5px;<br />
padding-right: 5px;<br />
}</p>
<p>As far as I found out yet, the different padding-interpretation occurs only in combination with a fixed width or height. So I splitted width and padding in two separate containers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-34767</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 10 Sep 2009 21:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-34767</guid>
		<description>Great job!!!
I&#039;ve been searching for a fix for so long and tried so many things.. this is brilliant!!!</description>
		<content:encoded><![CDATA[<p>Great job!!!<br />
I&#8217;ve been searching for a fix for so long and tried so many things.. this is brilliant!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-34048</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Mon, 24 Aug 2009 12:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-34048</guid>
		<description>You are welcome!</description>
		<content:encoded><![CDATA[<p>You are welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Maxwell</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-33991</link>
		<dc:creator>Andrew Maxwell</dc:creator>
		<pubDate>Sun, 23 Aug 2009 21:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-33991</guid>
		<description>Excellent - much appreciated.
Somehow a div was being pushed 75px out of line in IE6.
Padding and margins both 0. Using floated div inside another.
 The underscore trick worked perfectly:
_margin-left: 75px;

Still displayed perfectly in IE7, Opera, Firefox - the correction is only visible in IE6.

Regards,

Andrew.</description>
		<content:encoded><![CDATA[<p>Excellent &#8211; much appreciated.<br />
Somehow a div was being pushed 75px out of line in IE6.<br />
Padding and margins both 0. Using floated div inside another.<br />
 The underscore trick worked perfectly:<br />
_margin-left: 75px;</p>
<p>Still displayed perfectly in IE7, Opera, Firefox &#8211; the correction is only visible in IE6.</p>
<p>Regards,</p>
<p>Andrew.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.ericsprojects.com/?p=207&#038;cpage=1#comment-33796</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericsprojects.com/?p=207#comment-33796</guid>
		<description>Thank you.  Glad it worked for you.</description>
		<content:encoded><![CDATA[<p>Thank you.  Glad it worked for you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
