<?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: CSS Floats: Clearing without extra mark-up!</title> <atom:link href="http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/feed/" rel="self" type="application/rss+xml" /><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/</link> <description>a winnipeg website design company.</description> <lastBuildDate>Mon, 06 Feb 2012 15:07:39 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Dan</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-247</link> <dc:creator>Dan</dc:creator> <pubDate>Wed, 06 May 2009 18:12:46 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-247</guid> <description>Hey all, I like everyone found this technique really useful, however I&#039;ve come across a problem, that I&#039;m interested to see if people have the solution to. I have a navigation bar made up of floated left list elements, this list is within a container div, i used the overflow hidden technique to clear the float, works like a charm. Here&#039;s the problem on rollover my nav has a suckerfish type subnav. Because of the overflow:hidden the subnav no longer displays, as the container div appears to hide the subnav when it becomes a visible DOM element. Any ideas?Dan</description> <content:encoded><![CDATA[<p>Hey all,<br /> I like everyone found this technique really useful, however I&#8217;ve come across a problem, that I&#8217;m interested to see if people have the solution to. I have a navigation bar made up of floated left list elements, this list is within a container div, i used the overflow hidden technique to clear the float, works like a charm. Here&#8217;s the problem on rollover my nav has a suckerfish type subnav. Because of the overflow:hidden the subnav no longer displays, as the container div appears to hide the subnav when it becomes a visible DOM element. Any ideas?</p><p>Dan</p> ]]></content:encoded> </item> <item><title>By: paris @ united worx web design</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-248</link> <dc:creator>paris @ united worx web design</dc:creator> <pubDate>Sat, 31 Jan 2009 14:13:55 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-248</guid> <description>here is what i use and works beautifuly!, i just add the fixed class in my container and it simply works across all browsers. think i got this from a blog post in cssglobe.com.fixed:after{ content:&quot;.&quot;; display:block; height:0; clear:both; visibility:hidden; } .fixed{ display:block; } /*  \*/ .fixed{ min-height:1%; } * html .fixed{ height:1%; }</description> <content:encoded><![CDATA[<p>here is what i use and works beautifuly!, i just add the fixed class in my container and it simply works across all browsers.<br /> think i got this from a blog post in cssglobe.com</p><p>.fixed:after{<br /> content:&#8221;.&#8221;;<br /> display:block;<br /> height:0;<br /> clear:both;<br /> visibility:hidden;<br /> }<br /> .fixed{<br /> display:block;<br /> }<br /> /*  \*/<br /> .fixed{<br /> min-height:1%;<br /> }<br /> * html .fixed{<br /> height:1%;<br /> }</p> ]]></content:encoded> </item> <item><title>By: Jacques</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-236</link> <dc:creator>Jacques</dc:creator> <pubDate>Sat, 24 Jan 2009 22:04:40 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-236</guid> <description>I use &quot;overflow:hidden&quot; and &quot;zoom:1&quot; for IE. Works everytime.</description> <content:encoded><![CDATA[<p>I use &#8220;overflow:hidden&#8221; and &#8220;zoom:1&#8243; for IE. Works everytime.</p> ]]></content:encoded> </item> <item><title>By: AndySowards.com :: Web Development Nerdy Daily Links For 1/23/2009 &#124; AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-237</link> <dc:creator>AndySowards.com :: Web Development Nerdy Daily Links For 1/23/2009 &#124; AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?</dc:creator> <pubDate>Fri, 23 Jan 2009 07:58:28 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-237</guid> <description>[...] CSS Floats: Clearing without extra mark-up! :: Brenelz&#8217;s Web Development Tips :: Winnipeg Web ... Quick look into clearing floats without extra markup! (tags: design wordpress nettuts wp-plugins wp scratch custom dev webdesign development webdevelopment wordpress-plugins creating worpress ecommerce plugin php tutorial webdev tutorials plugins howto cms create 5star) [...]</description> <content:encoded><![CDATA[<p>[...] CSS Floats: Clearing without extra mark-up! :: Brenelz&#8217;s Web Development Tips :: Winnipeg Web &#8230; Quick look into clearing floats without extra markup! (tags: design wordpress nettuts wp-plugins wp scratch custom dev webdesign development webdevelopment wordpress-plugins creating worpress ecommerce plugin php tutorial webdev tutorials plugins howto cms create 5star) [...]</p> ]]></content:encoded> </item> <item><title>By: Anatoli Papirovski</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-238</link> <dc:creator>Anatoli Papirovski</dc:creator> <pubDate>Fri, 23 Jan 2009 01:55:55 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-238</guid> <description>I would advise anyone who uses this trick to consider always adding * html #container {overflow: visible; height: 1%;} for IE. Sometimes the overflow: hidden + nested floats can cause problems and all kinds of weird bugs that are hard to trace back.As for IE/Mac... what&#039;s the percentage of users on that? Seriously? That&#039;s like caring about IE5... not advisable.</description> <content:encoded><![CDATA[<p>I would advise anyone who uses this trick to consider always adding * html #container {overflow: visible; height: 1%;} for IE. Sometimes the overflow: hidden + nested floats can cause problems and all kinds of weird bugs that are hard to trace back.</p><p>As for IE/Mac&#8230; what&#8217;s the percentage of users on that? Seriously? That&#8217;s like caring about IE5&#8230; not advisable.</p> ]]></content:encoded> </item> <item><title>By: Jordan</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-239</link> <dc:creator>Jordan</dc:creator> <pubDate>Thu, 22 Jan 2009 13:59:08 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-239</guid> <description>At my office, we use a modified version of the PIE &quot;clearfix&quot; class (http://www.positioniseverything.net/easyclearing.html), and it works wonderfully. I can&#039;t test it, but does your trick work on IE/Mac? If so, we may have to do some testing with that...</description> <content:encoded><![CDATA[<p>At my office, we use a modified version of the PIE &#8220;clearfix&#8221; class (<a href="http://www.positioniseverything.net/easyclearing.html" rel="nofollow">http://www.positioniseverything.net/easyclearing.html</a>), and it works wonderfully. I can&#8217;t test it, but does your trick work on IE/Mac? If so, we may have to do some testing with that&#8230;</p> ]]></content:encoded> </item> <item><title>By: Dan Wellman</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-240</link> <dc:creator>Dan Wellman</dc:creator> <pubDate>Thu, 22 Jan 2009 12:54:12 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-240</guid> <description>in the first example, you can usually get rid of the additonal div or break by clearing the opposite side that is floated, so if all boxes are floated left, add clear:right to the 3rd box, then you can continue floating the lower boxes leftAlso, I find it more xbrowser compatible to add an empty comment within a clearing div</description> <content:encoded><![CDATA[<p>in the first example, you can usually get rid of the additonal div or break by clearing the opposite side that is floated, so if all boxes are floated left, add clear:right to the 3rd box, then you can continue floating the lower boxes left</p><p>Also, I find it more xbrowser compatible to add an empty comment within a clearing div</p> ]]></content:encoded> </item> <item><title>By: Timo</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-241</link> <dc:creator>Timo</dc:creator> <pubDate>Thu, 22 Jan 2009 10:05:31 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-241</guid> <description>problem #2 can also be solved by floating the container instead of overflow:hiddenso it would be: #container { float:left; }that&#039;s how I always do it..</description> <content:encoded><![CDATA[<p>problem #2 can also be solved by floating the container instead of overflow:hidden</p><p>so it would be:<br /> #container { float:left; }</p><p>that&#8217;s how I always do it..</p> ]]></content:encoded> </item> <item><title>By: Andy Ford</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-242</link> <dc:creator>Andy Ford</dc:creator> <pubDate>Thu, 22 Jan 2009 08:10:19 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-242</guid> <description>A word of caution when using this clearing method... If you need to position a descendant of the containing element outside or partially outside of the container, it will be clipped by the &#039;overflow:hidden&#039; rule.This can sometimes be an issue with some tooltip scripts for example.  But as long as you know it won&#039;t interfere with anything, the &#039;overflow:hidden&#039; clearing method can be extremely handy</description> <content:encoded><![CDATA[<p>A word of caution when using this clearing method&#8230;<br /> If you need to position a descendant of the containing element outside or partially outside of the container, it will be clipped by the &#8216;overflow:hidden&#8217; rule.</p><p>This can sometimes be an issue with some tooltip scripts for example.  But as long as you know it won&#8217;t interfere with anything, the &#8216;overflow:hidden&#8217; clearing method can be extremely handy</p> ]]></content:encoded> </item> <item><title>By: Mike van Hoenselaar</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-243</link> <dc:creator>Mike van Hoenselaar</dc:creator> <pubDate>Thu, 22 Jan 2009 06:52:37 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-243</guid> <description>Try use it with height:1% and display:block. No scrollbars.</description> <content:encoded><![CDATA[<p>Try use it with height:1% and display:block. No scrollbars.</p> ]]></content:encoded> </item> <item><title>By: Ben Tortora</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-244</link> <dc:creator>Ben Tortora</dc:creator> <pubDate>Thu, 22 Jan 2009 06:40:35 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-244</guid> <description>You have no idea how long I have been looking for a solution to this.Exactly what I have been searching for!</description> <content:encoded><![CDATA[<p>You have no idea how long I have been looking for a solution to this.</p><p>Exactly what I have been searching for!</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-246</link> <dc:creator>admin</dc:creator> <pubDate>Wed, 21 Jan 2009 14:59:26 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-246</guid> <description>Yes... overflow auto; works as well.The only problem I could see with that is if for some reason the content was larger than the div you would have scroll bars everywhere.</description> <content:encoded><![CDATA[<p>Yes&#8230; overflow auto; works as well.</p><p>The only problem I could see with that is if for some reason the content was larger than the div you would have scroll bars everywhere.</p> ]]></content:encoded> </item> <item><title>By: thomasd</title><link>http://brenelz.com/blog/css-floats-clearing-without-extra-mark-up/comment-page-1/#comment-245</link> <dc:creator>thomasd</dc:creator> <pubDate>Wed, 21 Jan 2009 14:55:27 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=525#comment-245</guid> <description>I&#039;m always using overflow: auto; on the container to do this, unitl now I&#039;ve never had a situation where it doesn&#039;t worked.</description> <content:encoded><![CDATA[<p>I&#8217;m always using overflow: auto; on the container to do this, unitl now I&#8217;ve never had a situation where it doesn&#8217;t worked.</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
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 26/44 queries in 0.010 seconds using disk: basic
Object Caching 670/671 objects using disk: basic

Served from: brenelz.com @ 2012-02-09 05:26:14 -->
