<?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: Developer&#039;s Notebook: Forward-thinking CSS float-clearing</title>
	<atom:link href="http://pathfindersoftware.com/2007/09/developers-note-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2007/09/developers-note-2/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: corroded</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7117</link>
		<dc:creator>corroded</dc:creator>
		<pubDate>Tue, 06 Jan 2009 13:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7117</guid>
		<description>&quot;I know that the need to clear floats isn&#039;t actually a bug, according to the WC3, but it should be. I can&#039;t think of a single time I&#039;ve ever _not_ needed to clear my floats. Can you? Tell me in the comments.&quot;

QFT

sadly i still use the old br class=&quot;clear&quot; routine :( it&#039;s the easiest to remember and works for all browsers</description>
		<content:encoded><![CDATA[<p>&#8220;I know that the need to clear floats isn&#8217;t actually a bug, according to the WC3, but it should be. I can&#8217;t think of a single time I&#8217;ve ever _not_ needed to clear my floats. Can you? Tell me in the comments.&#8221;</p>
<p>QFT</p>
<p>sadly i still use the old br class=&#8221;clear&#8221; routine <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  it&#8217;s the easiest to remember and works for all browsers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pathfinder Development &#187; What does your CSS Swiss Army knife look like?</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7116</link>
		<dc:creator>Pathfinder Development &#187; What does your CSS Swiss Army knife look like?</dc:creator>
		<pubDate>Mon, 22 Sep 2008 19:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7116</guid>
		<description>[...] cross-browser float-clearing:: I posted about this topic a year ago, generating plenty of debate. Whether you&#039;re using my Orbitz-inspired grocery-list-of-selectors [...]</description>
		<content:encoded><![CDATA[<p>[...] cross-browser float-clearing:: I posted about this topic a year ago, generating plenty of debate. Whether you&#8217;re using my Orbitz-inspired grocery-list-of-selectors [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jethro</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7115</link>
		<dc:creator>jethro</dc:creator>
		<pubDate>Wed, 05 Mar 2008 22:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7115</guid>
		<description>&lt;p&gt;There just needs to be an extra property in CSS. &lt;/p&gt;

&lt;p&gt;Something like &lt;br /&gt;
clear-children: clear/none;&lt;/p&gt;

&lt;p&gt;In all honesty should be set to clear by default. There have been times when I didn&#039;t want to clearfix, but they&#039;re rare enough that it shouldn&#039;t be the norm. Although, float wasn&#039;t designed for what we&#039;re using it for. There really needs to be an alternative to float. I&#039;m not terribly excited about the CSS3 Layout but it may be the way to go. &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>There just needs to be an extra property in CSS. </p>
<p>Something like <br />
clear-children: clear/none;</p>
<p>In all honesty should be set to clear by default. There have been times when I didn&#8217;t want to clearfix, but they&#8217;re rare enough that it shouldn&#8217;t be the norm. Although, float wasn&#8217;t designed for what we&#8217;re using it for. There really needs to be an alternative to float. I&#8217;m not terribly excited about the CSS3 Layout but it may be the way to go. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: presell</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7114</link>
		<dc:creator>presell</dc:creator>
		<pubDate>Sun, 28 Oct 2007 20:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7114</guid>
		<description>&lt;p&gt;Thanks for this one ...&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this one &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Dillard</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7113</link>
		<dc:creator>Brian Dillard</dc:creator>
		<pubDate>Mon, 01 Oct 2007 20:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7113</guid>
		<description>&lt;p&gt;I deliberately stayed out of the comments fray on this one, but I&#039;m grateful to my former colleage Gena for stepping in to explain more of the whys and wherefores behind this solution - something I should have done better in my original post.&lt;/p&gt;

&lt;p&gt;My problem with a lot of CSS how-tos is they assume a small pool of developers, a tightly controlled codebase, and a relatively static site. In the real world, many of us work on huge sites maintained by global development teams, which requires defensive coding techniques. These apps must be skinnable - the same markup powering multiple white-labelled instances, sometimes on a variety of platforms (mobile/browser/etc.). They also rely on templating systems that may compose any arbitrary set of modules into pages; the CSS mustn&#039;t break as a result of any specific configuration. &lt;/p&gt;

&lt;p&gt;The techniques that work for a mostly static, content-based site must be adapted for a complex webapp with multiple white-labelled instances. Thanks again to Gena for helping me illuminate why this particular solution worked well for one particular such app.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I deliberately stayed out of the comments fray on this one, but I&#8217;m grateful to my former colleage Gena for stepping in to explain more of the whys and wherefores behind this solution &#8211; something I should have done better in my original post.</p>
<p>My problem with a lot of CSS how-tos is they assume a small pool of developers, a tightly controlled codebase, and a relatively static site. In the real world, many of us work on huge sites maintained by global development teams, which requires defensive coding techniques. These apps must be skinnable &#8211; the same markup powering multiple white-labelled instances, sometimes on a variety of platforms (mobile/browser/etc.). They also rely on templating systems that may compose any arbitrary set of modules into pages; the CSS mustn&#8217;t break as a result of any specific configuration. </p>
<p>The techniques that work for a mostly static, content-based site must be adapted for a complex webapp with multiple white-labelled instances. Thanks again to Gena for helping me illuminate why this particular solution worked well for one particular such app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gena Wilson</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7112</link>
		<dc:creator>Gena Wilson</dc:creator>
		<pubDate>Mon, 01 Oct 2007 17:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7112</guid>
		<description>&lt;p&gt;A couple clarifications on why this approach worked for us--&lt;/p&gt;

&lt;p&gt;We were building a site that needed to be as fully skinnable/customizable as possible without needing changes to markup (but was allowed unlimited CSS differences via independent stylesheets).  Needing to enclose floated elements vs. not wanting to do so was not a good enough reason for changing the markup.  And in the interest of code transparency it was important to not have something like &quot;clearfix&quot; ever overwritten to not enclose floats.  It would be like having a class of &quot;pinkBorder&quot; that&#039;s set to be green in some implementations -- uncool, especially in a multiple developer environment.&lt;/p&gt;

&lt;p&gt;We also knew that designers sometimes like to employ the technique where graphics or text extend out of their parent container (but semantically, still belong inside it).  (Like a &quot;New/Improved&quot; graphic overlapping the corner of an element.)  For those cases, we needed overflow: hidden not to cut off that escaping content, and overflow: auto not to force scrollbars on it (even though in many other circumstances either would be more elegant).  And don&#039;t even get me started on overflow: auto + a floated parent + Safari 2.&lt;/p&gt;

&lt;p&gt;Lastly, we wanted our CSS to validate, which prevented the use of proprietary IE properties like &quot;zoom&quot; or things like the underscore hack.&lt;/p&gt;

&lt;p&gt;We went with the above technique for those reasons; it&#039;s most flexible for what we needed.&lt;/p&gt;

&lt;p&gt;Finally, while this problem is often discussed in terms of float clearing, it may be useful to clarify that the code above causes parent elements to *enclose* their floated children.  If browsers and designs supported it, it could be just as effective, and probably more transparent, to select the first subsequent sibling of div.containerWithFloats and add the appropriate clear (left/both/right) rule.  (Because this technique describes how to make div.containerWithFloats, due to its float enclosing, have subsequent elements no longer need to clear it.) &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>A couple clarifications on why this approach worked for us&#8211;</p>
<p>We were building a site that needed to be as fully skinnable/customizable as possible without needing changes to markup (but was allowed unlimited CSS differences via independent stylesheets).  Needing to enclose floated elements vs. not wanting to do so was not a good enough reason for changing the markup.  And in the interest of code transparency it was important to not have something like &#8220;clearfix&#8221; ever overwritten to not enclose floats.  It would be like having a class of &#8220;pinkBorder&#8221; that&#8217;s set to be green in some implementations &#8212; uncool, especially in a multiple developer environment.</p>
<p>We also knew that designers sometimes like to employ the technique where graphics or text extend out of their parent container (but semantically, still belong inside it).  (Like a &#8220;New/Improved&#8221; graphic overlapping the corner of an element.)  For those cases, we needed overflow: hidden not to cut off that escaping content, and overflow: auto not to force scrollbars on it (even though in many other circumstances either would be more elegant).  And don&#8217;t even get me started on overflow: auto + a floated parent + Safari 2.</p>
<p>Lastly, we wanted our CSS to validate, which prevented the use of proprietary IE properties like &#8220;zoom&#8221; or things like the underscore hack.</p>
<p>We went with the above technique for those reasons; it&#8217;s most flexible for what we needed.</p>
<p>Finally, while this problem is often discussed in terms of float clearing, it may be useful to clarify that the code above causes parent elements to *enclose* their floated children.  If browsers and designs supported it, it could be just as effective, and probably more transparent, to select the first subsequent sibling of div.containerWithFloats and add the appropriate clear (left/both/right) rule.  (Because this technique describes how to make div.containerWithFloats, due to its float enclosing, have subsequent elements no longer need to clear it.) </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aeonax</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7111</link>
		<dc:creator>Aeonax</dc:creator>
		<pubDate>Mon, 24 Sep 2007 09:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7111</guid>
		<description>&lt;p&gt;So... you&#039;ve unlittered the markup and littered the css. Nice!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>So&#8230; you&#8217;ve unlittered the markup and littered the css. Nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Peter Nielsen</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7110</link>
		<dc:creator>Hans Peter Nielsen</dc:creator>
		<pubDate>Mon, 24 Sep 2007 08:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7110</guid>
		<description>&lt;p&gt;&quot;If you&#039;ve ever floated an image next to a block of text, then you&#039;ve witnessed an instance where you did not have to clear your floats.&quot;&lt;/p&gt;

&lt;p&gt;If your text content is dynamic and/or the width of the text column is dynamic, you cannot be sure the text will extend the height of the image without clearing the image float.&lt;br /&gt;
If you want more than one image in the text paragraph, the same applies.&lt;/p&gt;

&lt;p&gt;So in my opinion you need to clear an image float in text paragraphs more often than not :)&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>&#8220;If you&#8217;ve ever floated an image next to a block of text, then you&#8217;ve witnessed an instance where you did not have to clear your floats.&#8221;</p>
<p>If your text content is dynamic and/or the width of the text column is dynamic, you cannot be sure the text will extend the height of the image without clearing the image float.<br />
If you want more than one image in the text paragraph, the same applies.</p>
<p>So in my opinion you need to clear an image float in text paragraphs more often than not <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Belafonte</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7109</link>
		<dc:creator>Aaron Belafonte</dc:creator>
		<pubDate>Sun, 23 Sep 2007 18:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7109</guid>
		<description>&lt;p&gt;quote: &quot;I can&#039;t think of a single time I&#039;ve ever _not_ needed to clear my floats. Can you? Tell me in the comments.&quot;&lt;/p&gt;

&lt;p&gt;If you&#039;ve ever floated an image next to a block of text, then you&#039;ve witnessed an instance where you did not have to clear your floats.&lt;/p&gt;

&lt;p&gt;Remember, that&#039;s what the originally conceived context of floated elements was intended to address.&lt;/p&gt;

&lt;p&gt;see this article by eric meyer from 2003&lt;br /&gt;
www.complexspiral.com/publications/containing-floats&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>quote: &#8220;I can&#8217;t think of a single time I&#8217;ve ever _not_ needed to clear my floats. Can you? Tell me in the comments.&#8221;</p>
<p>If you&#8217;ve ever floated an image next to a block of text, then you&#8217;ve witnessed an instance where you did not have to clear your floats.</p>
<p>Remember, that&#8217;s what the originally conceived context of floated elements was intended to address.</p>
<p>see this article by eric meyer from 2003<br />
<a href="http://www.complexspiral.com/publications/containing-floats" rel="nofollow">http://www.complexspiral.com/publications/containing-floats</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcos</title>
		<link>http://pathfindersoftware.com/2007/09/developers-note-2/#comment-7108</link>
		<dc:creator>marcos</dc:creator>
		<pubDate>Sun, 23 Sep 2007 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=243#comment-7108</guid>
		<description>&lt;p&gt;Me thinks it&#039;s a very ugly solution when this is cleaner:&lt;/p&gt;

&lt;p&gt;#container {overflow:hidden;}&lt;/p&gt;

&lt;p&gt;that for &#039;real&#039; browsers.&lt;/p&gt;

&lt;p&gt;Add zoom:1, _height:1%, width:(something) to trigger haslayout and you have it for ie6 and up (I usually have a separate stylesheet and conditional comments for that, so _height can be just height)&lt;/p&gt;

&lt;p&gt;Needless to say that if #container already has a width value due to it&#039;s own nature all the ie stuff is not needed.&lt;/p&gt;

&lt;p&gt;Cheers from Spain&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Me thinks it&#8217;s a very ugly solution when this is cleaner:</p>
<p>#container {overflow:hidden;}</p>
<p>that for &#8216;real&#8217; browsers.</p>
<p>Add zoom:1, _height:1%, width:(something) to trigger haslayout and you have it for ie6 and up (I usually have a separate stylesheet and conditional comments for that, so _height can be just height)</p>
<p>Needless to say that if #container already has a width value due to it&#8217;s own nature all the ie stuff is not needed.</p>
<p>Cheers from Spain</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-09 23:49:05 -->
