<?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>Alex Little &#187; div</title>
	<atom:link href="http://alexlittle.net/blog/tag/div/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexlittle.net/blog</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 17:31:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>More IE/CSS/div fun</title>
		<link>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/</link>
		<comments>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 14:29:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://alexlittle.net/blog/?p=386</guid>
		<description><![CDATA[Not being a designer spending all my time getting to know the ins and outs of how floating divs work, it tends to take me a little while to get my head around how to lay out pages using pure CSS. I thought I&#8217;d pretty much got how to do 2 and 3 column layouts [...]]]></description>
			<content:encoded><![CDATA[<p>Not being a designer spending all my time getting to know the ins and outs of how floating divs work, it tends to take me a little while to get my head around how to lay out pages using pure CSS. I thought I&#8217;d pretty much got how to do 2 and 3 column layouts with CSS and divs, but today I found a new problem which really had me stumped for a while.</p>
<p>Essentially I wanted an ordered list, then within each &lt;li&gt; element a couple of &lt;div&gt;s  which I could float to layout how I wanted. Everything was working fine in Firefox,  but not in IE(6), the images below show the output  given in Firefox and IE:</p>
<p><strong>IE (6):</strong></p>
<p><a href="http://alexlittle.net/blog/images/2008/06/li-ie.jpg"><img class="alignnone size-full wp-image-387" title="li-ie" src="http://alexlittle.net/blog/images/2008/06/li-ie.jpg" alt="" width="331" height="324" /></a></p>
<p><strong>Firefox:</strong></p>
<p><a href="http://alexlittle.net/blog/images/2008/06/li-ff.jpg"><img class="alignnone size-full wp-image-388" title="li-ff" src="http://alexlittle.net/blog/images/2008/06/li-ff.jpg" alt="" width="264" height="244" /></a></p>
<p><a href="http://alexlittle.net/blog/demo/ol-div-ie-ff.html">HTML code which generated the above images.</a></p>
<p>The items numbered 1-3 show how I want the output to appear, but my first stab at the code resulted in items numbered 4-6. As you can see, in Firefox it appears fine, but in IE the &#8216;float:left&#8217; is being ignored, making the div containing the text appear below the checkbox.  [Aside: you might ask why I'm using divs and floats for something as simple as just some text next to a checkbox, well, this is just my starting point, my final page will be more complicated than this example!]</p>
<p>The only difference between the working and non-working examples is that the div containing text has width property defined (set to 100%) in the working version. I&#8217;m not sure why this should be necessary &#8211; my example shows that it&#8217;s not needed if the wrapper div isn&#8217;t part of an ordered list.</p>
<p>My only explanation is that this is another (frustrating) little IE CSS bug &#8211; unless anyone can give me another explanation? Alternatively if there are better ways to do what I&#8217;m trying to achieve?</p>
]]></content:encoded>
			<wfw:commentRss>http://alexlittle.net/blog/2008/06/18/more-iecssdiv-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

