Quoting Peter Ottery <[EMAIL PROTECTED]>: > so you know how there's that new way to clear floats... > http://www.positioniseverything.net/easyclearing.html
> I mean, the "hack" used up until now of adding a <div > style="clear:both"></div> (or similar) to properly clear floats when needed > is pretty straightforward, albeit a bit of code that always felt > unnecessary... People new to CSS have just as much trouble understanding the need for either method. Usually they have built the site without the clearing element and then wonder why it's not working. That's where CSS can make the change to one file which fixes the whole site. > But this new method has the javascript requirement to fix mac ie5 and uses > the "holly hack" anyway. As far as CSS hacks go the Holly Hack would be one of the simplest and most effective. It is unfortunate that the JavaScript is needed in Some cases for IE5 mac. Eventually IE5 mac will disappear like the rest of IE (Firefox rules) and the hack or method wont be needed at all. On my site and in my initial testing I didn't need to use the JavaScript part of the method except on the demo page http://www.csscreator.com/attributes/containedfloat.php I uses floats all over the place but the rest of the site seems fine without it. > > I guess I just wanted to know if everyone is going to jump in and start > using that new method or wait and see if it has some pitfalls? I've have jumped in :) but I have an adventurous spirit. There will be other old browsers with limited CSS support that this method wont work for. They will get a slightly screwed up view of the site but the content should be still accessible. In time more people will understand and be comfortable with this method. It has given web developers a choice, add extra markup on every page or use a CSS/JavaScript hack in external files. Choice is always good to have even if you make the wrong one :) Tony http://www.csscreator.com ***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************
