Michael Stevens wrote: > The footer with clear both inside the wrapper is one solution. If you don't > have a 'footer', one solution is to insert a clearing element at the bottom > of your wrapper. > Or, 'easy clearing': > <http://www.positioniseverything.net/easyclearing.html> > > -- > > What's funny is that page says to add <div style="clear: both;"></div> at > the end but then start babbling about bloat and unwanted markup in the > html... Geeze. Then he spends 33 paragraphs trying to jury-rig the HTML & > CSS in order to avoid adding that one extra, and unfortunately necessary, > <div>. The result is 12 lines of code to the CSS vs. one line of HTML. > > I'll stick with the easy way if I can't find a reason to add a footer... > > Mike
Well Mike, if you're clearing multiple elements, it might be easier to do with just a couple of lines of CSS, rather than updating the HTML all over the place. The other way to do float clearing is to specify overflow: hidden, and a hasLayout trigger of your choice. http://www.quirksmode.org/css/clearing.html I would like to hear from people with more experience about whether this is a less than optimal way of doing things? Regards, - Rahul. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/