<?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>Austin Matzko&#039;s Blog &#187; Internet Explorer 7</title>
	<atom:link href="http://austinmatzko.com/tag/internet-explorer-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://austinmatzko.com</link>
	<description>A blog about philosophy, Christianity, web development and whatever else I feel like writing about.</description>
	<lastBuildDate>Wed, 16 Mar 2011 17:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-RC4-18391</generator>
		<item>
		<title>Internet Explorer 7 Float Bug</title>
		<link>http://austinmatzko.com/2007/07/25/internet-explorer-7-float-bug/</link>
		<comments>http://austinmatzko.com/2007/07/25/internet-explorer-7-float-bug/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 04:49:00 +0000</pubDate>
		<dc:creator>filosofo</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Internet Explorer 7]]></category>

		<guid isPermaLink="false">http://www.ilfilosofo.com/blog/2007/07/25/internet-explorer-7-float-bug/</guid>
		<description><![CDATA[Today while developing a WordPress theme for a client, I ran into a vexing Internet Explorer 7 bug. Anyone who&#8217;s done any website design is familiar with Internet Explorer 6 (or earlier) wreaking havoc with standards-compliant work that looks good in, say, Firefox. But thankfully IE 7 has for the most part been a big [...]]]></description>
			<content:encoded><![CDATA[<p>Today while developing a WordPress theme for a client, I ran into a vexing Internet Explorer 7 bug.  Anyone who&#8217;s done any website design is familiar with Internet Explorer 6 (or earlier) wreaking havoc with standards-compliant work that looks good in, say, Firefox.  But thankfully IE 7 has for the most part been a big improvement over its predecessor.  That&#8217;s what made this bug so strange: it didn&#8217;t affect IE 6, just IE 7.</p>

<img src='http://www.ilfilosofo.com/wp-content/uploads/ie7_float_problem.jpg' alt='Internet Explorer 7 Float Bug' />

<p>The first image shows a screenshot of the problem: the title of the post is drooping into the post.  Usually when you see something like this, it means that the containing element has not been cleared.  There are a number of ways to clear an element: <a href="http://www.positioniseverything.net/easyclearing.html">a popular fix these days uses a pseudo class</a>; the classic approach has been to put a cleared element within the same element as the floating element, but after it.  Neither fix works for this bug.</p>

<p>Thankfully, I found <a href="http://www.brunildo.org/test/fenc7.html">a demonstration of a similar problem with IE 7</a>.  Apparently if the element containing the floating element has a set height or a maximum height, it confuses IE 7.  According to the standard, a browser should obey the CSS height of the element (and IE 7 does&#8212;good job!&#8212;unlike IE 6). But every cleared element after the floater should be pushed down, not overlapped, by the floater.</p>

<p>The solution is to remove the height assignment from the container element, if you can.  In my case, for another part of the site experiencing the same problem, I needed the element to have enough height to show a background image.  The solution was to use the min-height property, which doesn&#8217;t trigger the bug.</p>

<p>The final image shows what it should look like, as rendered by Firefox.</p>

<img src='http://www.ilfilosofo.com/wp-content/uploads/firefox_no_float_problem.jpg' alt='Firefox does not have IE 7âs float bug' />
]]></content:encoded>
			<wfw:commentRss>http://austinmatzko.com/2007/07/25/internet-explorer-7-float-bug/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>
