<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Floats, clears, and color flashes</title>
	<atom:link href="http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/</link>
	<description>Web design news and insights since 1995</description>
	<lastBuildDate>Tue, 16 Mar 2010 22:06:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul McClean</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-43461</link>
		<dc:creator>Paul McClean</dc:creator>
		<pubDate>Wed, 17 Jun 2009 12:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-43461</guid>
		<description>Hi guys,
Have been searching for a solution to this exact &#039;flickering&#039; wrapper problem when the wrapper hasn&#039;t got the height from it&#039;s containing elements. The overflow: auto;  solution worked perfectly. Thanks so much for posting. The design community thrives because of helpful stuff like this.

All the best,
Paul</description>
		<content:encoded><![CDATA[<p>Hi guys,<br />
Have been searching for a solution to this exact &#8216;flickering&#8217; wrapper problem when the wrapper hasn&#8217;t got the height from it&#8217;s containing elements. The overflow: auto;  solution worked perfectly. Thanks so much for posting. The design community thrives because of helpful stuff like this.</p>
<p>All the best,<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Redesigned &#8211; Jeffrey Zeldman Presents The Daily Report</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-43313</link>
		<dc:creator>Redesigned &#8211; Jeffrey Zeldman Presents The Daily Report</dc:creator>
		<pubDate>Sat, 13 Jun 2009 12:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-43313</guid>
		<description>[...] more about it here, here, there, and elsewhere. (Don&#8217;t freak out; these old posts are now in the new layout, adding a [...]</description>
		<content:encoded><![CDATA[<p>[...] more about it here, here, there, and elsewhere. (Don&#8217;t freak out; these old posts are now in the new layout, adding a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Design References: Cascading Style Sheets</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42879</link>
		<dc:creator>Web Design References: Cascading Style Sheets</dc:creator>
		<pubDate>Mon, 01 Jun 2009 23:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42879</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...]  Floats, Clears, and Color Flashes - Jeffery Zeldman New! [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[...]  Floats, Clears, and Color Flashes &#8211; Jeffery Zeldman New! [...]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amazon.com: Designing with Web Standards (2nd Edition): Jeffrey Zeldman: Books</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42807</link>
		<dc:creator>Amazon.com: Designing with Web Standards (2nd Edition): Jeffrey Zeldman: Books</dc:creator>
		<pubDate>Thu, 28 May 2009 20:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42807</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] that we&#8217;re staring on black text / orange background combo for ...   This is syndicated from Jeffrey Zeldman Presents The Daily Report.       [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[...] that we&#8217;re staring on black text / orange background combo for &#8230;   This is syndicated from Jeffrey Zeldman Presents The Daily Report.       [...]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quick scan of the net - wrapper counter &#171; The Seventies</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42805</link>
		<dc:creator>Quick scan of the net - wrapper counter &#171; The Seventies</dc:creator>
		<pubDate>Thu, 28 May 2009 17:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42805</guid>
		<description>[...] http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/Solution is very simple – use &#8216;:after&#8217; clearing for the main wrapper. Sure, it won&#8217;t work on IE, but 1) setting width to wrapper sets hasLayout and triggers clearing 2) #footer is still there, in any case. &#8230;. At first it&#8217;s a bit counter- intuitive to use a giant table to lay out your entire document, but the markup is fairly easy to read once you get your head around it, and it turns out that the rendering is very consistent across browsers, including the dreaded Safari. &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/Solution" rel="nofollow">http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/Solution</a> is very simple – use &#8216;:after&#8217; clearing for the main wrapper. Sure, it won&#8217;t work on IE, but 1) setting width to wrapper sets hasLayout and triggers clearing 2) #footer is still there, in any case. &#8230;. At first it&#8217;s a bit counter- intuitive to use a giant table to lay out your entire document, but the markup is fairly easy to read once you get your head around it, and it turns out that the rendering is very consistent across browsers, including the dreaded Safari. &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amadeus</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42801</link>
		<dc:creator>Amadeus</dc:creator>
		<pubDate>Thu, 28 May 2009 16:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42801</guid>
		<description>I have to give +1 to :after for clearing floats, although with some small changes. 

1) content:&#039;.&#039; should change to content:&#039;&#039;. Why do we need the period in the first place? It has worked on every browser I have tested on.

2) To trigger hasLayout in IE, I just use zoom:1; Sure it&#039;s not valid CSS, but at least it&#039;s competely inobtrusive. Furthermore, I would probably just place that in a IE specific stylesheet, which is full of tweaks anyways for IE. I don&#039;t like to muck up standards based browsers with IE fixins.</description>
		<content:encoded><![CDATA[<p>I have to give +1 to :after for clearing floats, although with some small changes. </p>
<p>1) content:&#8217;.&#8217; should change to content:&#8221;. Why do we need the period in the first place? It has worked on every browser I have tested on.</p>
<p>2) To trigger hasLayout in IE, I just use zoom:1; Sure it&#8217;s not valid CSS, but at least it&#8217;s competely inobtrusive. Furthermore, I would probably just place that in a IE specific stylesheet, which is full of tweaks anyways for IE. I don&#8217;t like to muck up standards based browsers with IE fixins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42797</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 28 May 2009 14:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42797</guid>
		<description>@Zeldman: Why not apply &lt;code&gt;display: table&lt;/code&gt;, &lt;code&gt;display: table-row&lt;/code&gt;, and &lt;code&gt;display: table-cell&lt;/code&gt; for browsers that can handle it by using, say &lt;code&gt;:nth-child&lt;/code&gt;?  I know floats work, even if they are a table-for-presentation-like hack, and it would add more code to your CSS file to do this. It would, however, allow you to get around a lot of the other hackish techniques for dealing with faux-columns.  Serve browsers that don&#039;t do &lt;code&gt;display: table&lt;/code&gt;, etc, their equivalent without the extra hacks, a la Progressive Enhancement.</description>
		<content:encoded><![CDATA[<p>@Zeldman: Why not apply <code>display: table</code>, <code>display: table-row</code>, and <code>display: table-cell</code> for browsers that can handle it by using, say <code>:nth-child</code>?  I know floats work, even if they are a table-for-presentation-like hack, and it would add more code to your CSS file to do this. It would, however, allow you to get around a lot of the other hackish techniques for dealing with faux-columns.  Serve browsers that don&#8217;t do <code>display: table</code>, etc, their equivalent without the extra hacks, a la Progressive Enhancement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Messinger</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42796</link>
		<dc:creator>Adam Messinger</dc:creator>
		<pubDate>Thu, 28 May 2009 14:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42796</guid>
		<description>@Alan Bristow: With Textpattern, getting CSS out of the db and onto the filesystem is an essential performance tweak. The db-based CSS only really exists as a legacy feature at this point, and using it isn&#039;t recommended. The rvm_css plugin looks like an interesting approach, and I&#039;ll have to give it a closer look. Thanks for the tip.

As for float clearing, I tend to use &lt;code&gt;overflow: hidden&lt;/code&gt; unless it causes clipping problems. Otherwise, floating the container also works. Neither is particularly elegant, but both are broadly compatible.</description>
		<content:encoded><![CDATA[<p>@Alan Bristow: With Textpattern, getting CSS out of the db and onto the filesystem is an essential performance tweak. The db-based CSS only really exists as a legacy feature at this point, and using it isn&#8217;t recommended. The rvm_css plugin looks like an interesting approach, and I&#8217;ll have to give it a closer look. Thanks for the tip.</p>
<p>As for float clearing, I tend to use <code>overflow: hidden</code> unless it causes clipping problems. Otherwise, floating the container also works. Neither is particularly elegant, but both are broadly compatible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42795</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Thu, 28 May 2009 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42795</guid>
		<description>I solve a lot of this using display: inline-block and margins instead of floats -- I find it leaves me with cleaner CSS (mostly) and I don&#039;t have to float everything, which I&#039;ve always felt makes a design &quot;fragile&quot; and prone to breakage (and also as much a misappropriation of the functionality of floats as table-based layouts are of tables).

It does, however, leave Firefox 2 users completely out in the cold.</description>
		<content:encoded><![CDATA[<p>I solve a lot of this using display: inline-block and margins instead of floats &#8212; I find it leaves me with cleaner CSS (mostly) and I don&#8217;t have to float everything, which I&#8217;ve always felt makes a design &#8220;fragile&#8221; and prone to breakage (and also as much a misappropriation of the functionality of floats as table-based layouts are of tables).</p>
<p>It does, however, leave Firefox 2 users completely out in the cold.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Bristow</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42794</link>
		<dc:creator>Alan Bristow</dc:creator>
		<pubDate>Thu, 28 May 2009 14:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42794</guid>
		<description>I recently had flashing problems on a site. It was Textpatten based and my problem was mainly my reliance on db reads for the CSS when it can be made static via a simple plugin. Results were instant and the cure was complete. Plugin was, rvm_css (it&#039;s in the Googles).

Gonna look at :after too tho&#039;.</description>
		<content:encoded><![CDATA[<p>I recently had flashing problems on a site. It was Textpatten based and my problem was mainly my reliance on db reads for the CSS when it can be made static via a simple plugin. Results were instant and the cure was complete. Plugin was, rvm_css (it&#8217;s in the Googles).</p>
<p>Gonna look at :after too tho&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Zeldman</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42792</link>
		<dc:creator>Jeffrey Zeldman</dc:creator>
		<pubDate>Thu, 28 May 2009 14:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42792</guid>
		<description>@AlanW: I thought it was funny. And clever. And it&#039;s true that we&#039;re making do with float, because CSS initially offered no means of designing multiple columns. In other words, float is a hack like table layouts were a hack. But I&#039;ll take semantic markup and floating divs over fat pages of non-semantic cruft (i.e. table layouts) any day. As to the notion that table layouts are more accessible, poppycock. CSS layout offers a control of source order that is infinitely friendlier to users of tools like JAWS; and navigating via H2 and H3 headlines is the same to the JAWS user whether the page was laid out with DIV or TD.</description>
		<content:encoded><![CDATA[<p>@AlanW: I thought it was funny. And clever. And it&#8217;s true that we&#8217;re making do with float, because CSS initially offered no means of designing multiple columns. In other words, float is a hack like table layouts were a hack. But I&#8217;ll take semantic markup and floating divs over fat pages of non-semantic cruft (i.e. table layouts) any day. As to the notion that table layouts are more accessible, poppycock. CSS layout offers a control of source order that is infinitely friendlier to users of tools like JAWS; and navigating via H2 and H3 headlines is the same to the JAWS user whether the page was laid out with DIV or TD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlanW</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42790</link>
		<dc:creator>AlanW</dc:creator>
		<pubDate>Thu, 28 May 2009 13:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42790</guid>
		<description>@Jeffrey I&#039;d love it if you&#039;d weigh in on Matt&#039;s comment regarding using tables for layout and the semantics of floats.</description>
		<content:encoded><![CDATA[<p>@Jeffrey I&#8217;d love it if you&#8217;d weigh in on Matt&#8217;s comment regarding using tables for layout and the semantics of floats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olly</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42743</link>
		<dc:creator>Olly</dc:creator>
		<pubDate>Tue, 26 May 2009 11:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42743</guid>
		<description>@Jeff - You can trigger hasLayout in IE6, which has a similar effect. The easiest way I&#039;ve found is to set a dimension on the box, e.g. height: 1%;</description>
		<content:encoded><![CDATA[<p>@Jeff &#8211; You can trigger hasLayout in IE6, which has a similar effect. The easiest way I&#8217;ve found is to set a dimension on the box, e.g. height: 1%;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42741</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 26 May 2009 10:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42741</guid>
		<description>Correct me if I&#039;m wrong, after doesn&#039;t work on IE 6 ?
That would be the only drawback; whether we have reach reach the point where we can ignore ie 6 is another talk though...</description>
		<content:encoded><![CDATA[<p>Correct me if I&#8217;m wrong, after doesn&#8217;t work on IE 6 ?<br />
That would be the only drawback; whether we have reach reach the point where we can ignore ie 6 is another talk though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kozakewich</title>
		<link>http://www.zeldman.com/2009/05/22/floats-clears-and-color-flashes/#comment-42735</link>
		<dc:creator>Michael Kozakewich</dc:creator>
		<pubDate>Tue, 26 May 2009 00:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeldman.com/?p=1147#comment-42735</guid>
		<description>Neal G:&quot;...but I have a feeling you’re stats for this site have IE6 around 3-5%&quot;
3-5% is far too high a number. I&#039;m sure Chrome, Opera, and All-Other-Browsers each take up less than 10% of his visitors.

I don&#039;t seem to be well-versed in floats; I thought the :after trick was the newest clearing method.
Is there any specific reason not to use that?
Also, is there a specific resource somewhere which lays out every clearing method, with the pros and cons of each? It sounds like there are a tremendous number.</description>
		<content:encoded><![CDATA[<p>Neal G:&#8221;&#8230;but I have a feeling you’re stats for this site have IE6 around 3-5%&#8221;<br />
3-5% is far too high a number. I&#8217;m sure Chrome, Opera, and All-Other-Browsers each take up less than 10% of his visitors.</p>
<p>I don&#8217;t seem to be well-versed in floats; I thought the :after trick was the newest clearing method.<br />
Is there any specific reason not to use that?<br />
Also, is there a specific resource somewhere which lays out every clearing method, with the pros and cons of each? It sounds like there are a tremendous number.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
