<?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>Ben Gilman &#187; Bugs</title>
	<atom:link href="http://www.bengilman.com/category/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bengilman.com</link>
	<description>...blogs about design, branding and doing business.</description>
	<lastBuildDate>Tue, 29 Jun 2010 17:50:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mysterious double padding in IE7</title>
		<link>http://www.bengilman.com/2007/07/mysterious-double-padding-in-ie7/</link>
		<comments>http://www.bengilman.com/2007/07/mysterious-double-padding-in-ie7/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 16:09:21 +0000</pubDate>
		<dc:creator>Ben Gilman</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://bengilman.wordpress.com/2007/07/16/mysterious-double-padding-in-ie7/</guid>
		<description><![CDATA[I found a very strange rendering bug in IE7 today. It was particularly strange as it showed no symptoms in IE6. Firefox &#38; Safari (as is usually the case) displayed it perfectly. Here&#8217;s the (abridged) code for the section I was working with and the associated screenshot of the problem. Basically, IE7 was adding a [...]]]></description>
			<content:encoded><![CDATA[<p>I found a very strange rendering bug in IE7 today. It was particularly strange as it showed no symptoms in IE6. Firefox &amp; Safari (as is usually the case) displayed it perfectly.</p>
<p><a href="http://www.bengilman.com/wp-content/uploads/2008/06/mysteriousgap.jpg"><img class="size-full wp-image-23" style="vertical-align: baseline;" title="The mysterious gap" src="http://www.bengilman.com/wp-content/uploads/2008/06/mysteriousgap.jpg" alt="" width="242" height="302" /></a></p>
<p>Here&#8217;s the (abridged) code for the section I was working with and the associated screenshot of the problem. Basically, IE7 was adding a 10-pixel padding to numerous elements proceeding down the page.</p>
<pre>   &lt;h2 class="BlueBar"&gt;Details of your loan&lt;/h2&gt;
   &lt;div class="Full"&gt;
     &lt;h3&gt;About this loan&lt;/h3&gt;
     &lt;table summary="Details of this loan" cellspacing="0" class="AboutLoan"&gt;
       &lt;tbody&gt;
         &lt;tr class="Odd"&gt;
           &lt;th&gt;Loan amount&lt;/th&gt;
           &lt;td&gt;£2,500&lt;/td&gt;
         &lt;/tr&gt;
       &lt;/tbody&gt;
     &lt;/table&gt;
   &lt;/div&gt;</pre>
<p>As you can see the &lt;h2&gt; with the blue background and the &lt;table&gt; were totally unrelated, however IE7 deemed it fitting to add the gap to the left of all of the elements, in the case of the &lt;h2&gt; as left padding.</p>
<p>After much experimentation I tracked the problem down to an unrelated comment further up the page. Whilst I&#8217;m used to <a title="comment bugs in IE6" href="http://www.positioniseverything.net/explorer/dup-characters.html">comments bugs in IE6</a> it was a new experience to find such a basic rendering error in IE7, given that my general experiences with CSS coding for the browser has been for the most part positive.</p>
<p>I&#8217;ve not had time to properly diagnose the problem or the specific conditions that cause it to occur but the short lesson for today is that IE7 shares comment-sensitivity with it&#8217;s problematic forefathers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bengilman.com/2007/07/mysterious-double-padding-in-ie7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
