<?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>FatBasturd &#187; Bug</title>
	<atom:link href="http://www.fatbasturd.co.uk/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fatbasturd.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 20 Aug 2009 10:58:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Internet Explorer 6 (IE6) Double Margin CSS Fix</title>
		<link>http://www.fatbasturd.co.uk/internet-explorer-6-ie6-double-margin-css-fix/</link>
		<comments>http://www.fatbasturd.co.uk/internet-explorer-6-ie6-double-margin-css-fix/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 07:34:27 +0000</pubDate>
		<dc:creator>FatBasturd</dc:creator>
				<category><![CDATA[Design, CSS & Xhtml]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Internet Explorer 6]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.fatbasturd.co.uk/?p=131</guid>
		<description><![CDATA[I thought I should share with you a little bug fix within Internet Explorer 6 that certainly would have had some of you pulling your hair out before now. I am of course talking about a situation where you have a floating element within IE6 that magically gains extra padding or margin without setting it.
The problem [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I should share with you a little bug fix within Internet Explorer 6 that certainly would have had some of you pulling your hair out before now. I am of course talking about a situation where you have a floating element within IE6 that magically gains extra padding or margin without setting it.</p>
<p>The problem occurs when you float an element such as a div within your page with padding or margin. IE6 sees it and decides it has a passion for a fatty (no pun intended) and waves its magical MS wand. The MS spell makes the element expand with &#8220;double&#8221; the padding you wanted on it.</p>
<p>So what can we do to fix the issue? <span id="more-131"></span>Well&#8230;. This is going to be a long long long exercise so I would seriously consider eating a kebab whilst doing the fix!! Got your kebab? Ok lets go..</p>
<p>add the following to the css of the element you are having an issue with.</p>
<pre>display: inline;</pre>
<p>That&#8217;s it&#8230;You are done. <img src='http://www.fatbasturd.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You still have the kebab right? not eaten any yet? Send it to me through my comments box.. Go ahead i don&#8217;t bite</p>
<p>P.S: If you really need your element to be a block element rather than inline you can do the following hack within your stylesheet.</p>
<p>this example is if you have 20px margin on the element.</p>
<pre>margin-left: 20px;  /* Other Browsers */
margin-right: 20px; /* Other Browsers */
_margin-left: 10px; /* IE6 */
_margin-right: 10px; /* IE6 */</pre>
<p>The underscore is only seen by IE6 and will basically give it beer goggles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fatbasturd.co.uk/internet-explorer-6-ie6-double-margin-css-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
