Making stuff as a founder of Avocado. Former music-maker. Tuna melt advocate. Started Google Reader. (But smarter people made it great.)

No more "clearing" DIVs?

This is an intriguing article. (If you're a web developer.) How To Clear Floats Without Structural Markup
"One of the major premises of CSS is that it helps reduce the bloated HTML markup found it the average site these days. So having to re-bloat the markup just so floats can be kept within their containers is not an ideal arrangement...Thanks to the efforts of Tony Aslett, creator and operator of csscreator.com, we can now use advanced CSS to "clear" a float container in non-IE browsers and just let IE keep wrongly clearing itself. The upshot is that we no longer need to add that pesky clearing element to the HTML markup."
No more inserting <div class="clear" />? Nice. There's a gotcha for some in that the solution requires Javascript to work in Mac IE 5. But I don't see that as too much of a roadblock.
posted at May 21, 2004, 9:34 AM

0 Comments:

Post a Comment