<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: IE Lists and Floats</title>
	<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats/</link>
	<description>Comments on Ask MetaFilter post IE Lists and Floats</description>
	<pubDate>Thu, 21 Oct 2004 19:27:52 -0800</pubDate>
	<lastBuildDate>Thu, 21 Oct 2004 19:27:52 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: IE Lists and Floats</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats</link>	
		<description>&lt;strong&gt;IE Lists and Floats&lt;/strong&gt;&lt;br&gt;
I&apos;ve been playing around with lists and have run up against what I believe is one of IEs box model bugs. Every workaround I know of is useless. I&apos;ve created a simplified example of what I am doing that contains only what is needed to get the lists to style properly in a standards compliant browser. In the actual layout they are contained in a center column. If you view this in Firefox or Mozilla and then in IE 6 you&apos;ll see the problem. &lt;a href=&quot;http://grodworks.com/private/example.html&quot;&gt;Example&lt;/a&gt; Can anyone figure out what is going on here?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2004:site.11130</guid>
		<pubDate>Thu, 21 Oct 2004 18:50:51 -0800</pubDate>
		<dc:creator>Grod</dc:creator>
		
			<category>ie</category>
		
	</item> <item>
		<title>By: BobInce</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#197710</link>	
		<description>It&apos;s to do with IE&apos;s behaviour of making the parent of any floating element high enough to contain the complete floating element. See http://www.positioniseverything.net/easyclearing.html for the tedious detail.&lt;br&gt;
&lt;br&gt;
Because of this, closing the first &amp;lt;li&amp;gt; takes the position down to the bottom of the floated &amp;lt;ul&amp;gt; that&apos;s inside it. Then when the second &amp;lt;ul&amp;gt;-in-&amp;lt;li&amp;gt; comes along we&apos;re already below the bottom of the float so the things stack vertically instead of horizontally.&lt;br&gt;
&lt;br&gt;
To avoid this problem you could try floating the &amp;lt;li&amp;gt; directly instead of its child &amp;lt;ul&amp;gt;; then there would be no parent element to fool IE into clearing the inner float.&lt;br&gt;
&lt;br&gt;
On an unrelated point, I&apos;m not sure why you&apos;re floating the outer &amp;lt;ul&amp;gt;s. Setting &apos;clear&apos; on an element whose ancestor is floating sounds like asking for trouble to me.&lt;br&gt;
&lt;br&gt;
Finally, you&apos;ve got elements that are floated but without a width. In CSS 2.1 this is allowed and means &apos;shrink-to-fit&apos;; in CSS 2 it explicitly isn&apos;t. In any case, different browsers will behave different in the face of this.&lt;br&gt;
&lt;br&gt;
You could set a width for the left float and leave the right bit unfloated with a left-margin of the same width. But if what you really want is shrink-to-fit column-like behaviour, you&apos;re really probably best off with a table.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-197710</guid>
		<pubDate>Thu, 21 Oct 2004 19:27:52 -0800</pubDate>
		<dc:creator>BobInce</dc:creator>
	</item><item>
		<title>By: smackfu</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#197718</link>	
		<description>I don&apos;t get why the paper title (The Superior Paper) is in the same list item as the grade un-ordered list.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-197718</guid>
		<pubDate>Thu, 21 Oct 2004 19:35:19 -0800</pubDate>
		<dc:creator>smackfu</dc:creator>
	</item><item>
		<title>By: Grod</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#197729</link>	
		<description>Hmmmmmmmmmmmmmmm. &lt;strong&gt;BobInce,&lt;/strong&gt; would you mind showing me what you mean?&lt;br&gt;
&lt;br&gt;
smackfu... &apos;cause it works... not much of an answer, I know. However, since the li contains a sub list I could justify the choice on the grounds that it is the definition of the term, sort of like a sub heading or parenthetical elaboration before the description.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-197729</guid>
		<pubDate>Thu, 21 Oct 2004 20:36:07 -0800</pubDate>
		<dc:creator>Grod</dc:creator>
	</item><item>
		<title>By: BobInce</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#197767</link>	
		<description>&amp;gt; would you mind showing me what you mean?&lt;br&gt;
&lt;br&gt;
Erm... in which bit?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-197767</guid>
		<pubDate>Thu, 21 Oct 2004 23:57:08 -0800</pubDate>
		<dc:creator>BobInce</dc:creator>
	</item><item>
		<title>By: Grod</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#197944</link>	
		<description>um, the bit that makes IE display the lists the way firefox displays them</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-197944</guid>
		<pubDate>Fri, 22 Oct 2004 10:23:55 -0800</pubDate>
		<dc:creator>Grod</dc:creator>
	</item><item>
		<title>By: BobInce</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#198078</link>	
		<description>Ah, you mean the  &apos;just give up and use tables&apos; bit? :-)&lt;br&gt;
&lt;br&gt;
If you just want a simple fix, move the float:left from the &apos;li ul&apos; rule to the &amp;lt;li&amp;gt; itself. But be aware that what you&apos;re trying to do with shrink-wrap floats is explicitly invalid in CSS 2.0.&lt;br&gt;
&lt;br&gt;
If you don&apos;t mind having a fixed-size left column, float the first &amp;lt;li&amp;gt; in each body-level &amp;lt;ul&amp;gt; left and give it a width (eg. 12em or something). Then give the second &amp;lt;li&amp;gt; a margin-left of the same amount (but don&apos;t float it). And don&apos;t float the top-level &amp;lt;ul&amp;gt;s.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-198078</guid>
		<pubDate>Fri, 22 Oct 2004 17:43:24 -0800</pubDate>
		<dc:creator>BobInce</dc:creator>
	</item><item>
		<title>By: Grod</title>
		<link>http://ask.metafilter.com/11130/IE-Lists-and-Floats#198096</link>	
		<description>&lt;strong&gt;BobInce&lt;/strong&gt; I&apos;m an idiot. I don&apos;t mind explicit widths on the elements, but what you are saying isn&apos;t working for me so I don&apos;t think I&apos;m understanding what you mean. Can you email me a modified copy of example.html?&lt;br&gt;
&lt;br&gt;
Sorry, and thanks.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2004:site.11130-198096</guid>
		<pubDate>Fri, 22 Oct 2004 18:44:33 -0800</pubDate>
		<dc:creator>Grod</dc:creator>
	</item>
	</channel>
</rss>
