<?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>Everything old is new again &#187; error</title>
	<atom:link href="http://www.svendtofte.com/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svendtofte.com</link>
	<description>rantings &#38; scraps on code and web development</description>
	<lastBuildDate>Sat, 06 Nov 2010 20:55:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IE formatting oddity</title>
		<link>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/</link>
		<comments>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 18:19:09 +0000</pubDate>
		<dc:creator>Svend</dc:creator>
				<category><![CDATA[Stylesheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.svendtofte.com/?p=9</guid>
		<description><![CDATA[It&#8217;s good to know that within 1 day of returning to any amount of CSS work, Internet Explorer can still baffle me. Maybe I&#8217;m missing something here, but seems that if a small tag (yes, let the damnations begin, but it was mostly due to the WordPress default template using it, that I came across [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s good to know that within 1 day of returning to any amount of CSS work, Internet Explorer can still baffle me. Maybe I&#8217;m missing something here, but seems that if a <code>small</code> tag (yes, let the damnations begin, but it was mostly due to the WordPress default template using it, that I came across it) does not include some <em>trailing whitespace</em>, it receives a little extra padding.</p>
<p class="imgWithCaption">
<img src="http://www.svendtofte.com/wp-content/uploads/2008/07/small_margin.gif" width="435" height="338" alt="Small element rendering comparison" /><br />
Rendering oddity with <code>small</code> tags with no trailing whitespace.
</p>
<p>The HTML code used validates, <a href="http://www.svendtofte.com/wp-content/uploads/2008/07/wth_ie.html">should you wish to inspect it yourself</a>. The &#8220;CSS1Compat&#8221; mode is merely to ensure we&#8217;re in &#8220;standards mode&#8221;. </p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"&gt;
&lt;head&gt;&lt;title&gt;wth ie&lt;/title&gt;
&lt;style type="text/css"&gt;
h2{
background-color:red;
margin-bottom:0;}

.wth {
background-color:green;
margin-top:0;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;h2&gt;foo&lt;/h2&gt;    &lt;small class="wth"&gt; b ar &lt;/small&gt;

&lt;h2&gt;foo&lt;/h2&gt;    &lt;small class="wth"&gt; b az&lt;/small&gt;

&lt;hr/&gt;
&lt;script type="text/javascript"&gt;
document.write(document.compatMode);
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>You&#8217;ll notice I remove all margin on the elements. And indeed, the first header <code>h2</code> and <code>small</code> does render correctly. But the second gets a 2 pixel margin added for &#8230; who knows what reason. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

