On 9/23/06, francky <[EMAIL PROTECTED]> wrote: > Hi Arian, > For FF a {height:1px;} is needed for the clearing div. Reason: with a > {height: 0;}and all other things set to zero too: the div doesn't exist! > To get the 1px back, you can add a (margin-bottom: -1px;}. In this way, > the green background is coming in FF too. > (The comment stuff: time for today is gone...)
Very cool francky, the height:1px now seemed to work with the problem i had in IE.... hmmm FF seemed to have no problem with it a clearing div with no height though, do you mean IE? the height thing also seems to allow me to keep that comment there, so i guess the problem was in IE as you said it needs a little height, i could have swore i have used height:0px; clearing divs before though in IE and they worked. So what is the best css for a clearing div that works in both browsers.., this is what i came up with based on your info.... .clearFloat{ clear:both; margin:0px; padding:0px; font-size:0px; line-height:0px; height:1px; /* maybe add this to an IE<7 specific css file */ margin-bottom: -1px;/* maybe add this to an IE<7 specific css file */ } ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- 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/