Previous Message
Next Message

Firefox 1.0 rc2 not respecting clear:both; bug or correct behaviour?

Sent by Dave Silvester on 8 November 2004 01:01


On Monday 08 Nov 2004 00:58, Charles Wyke-Smith wrote:
> Anyone else noticed this, or use it when wrapping floats?

Yeah, I've noticed that too.  Basically, the Gecko browsers won't render 
"invisible" stuff, so if you give it a property such as border which has a 
visual element to it, the div appears OK even if it's otherwise empty.  I 
don't think it works with anything like background-color though, so I just 
adopted the non-breaking space and small font size as my method because it's 
not always practical to display a border.

I figure if the page is viewed without styles, a bit of extra space here and 
there probably isn't going to matter much (and of course I test without 
styles too, just to make sure).

But hey... now we have a choice of methods, which is never a bad thing!  ;-D

~Dave

-- 

Dave Silvester
Music Technology Junkie
Web: http://www.mu-sly.co.uk/
Email: sly at mu hyphen sly dot co dot uk
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: