Previous Message
Next Message

CSS background-color bug in FireFox?

Sent by Gunlaug_Sørtun on 9 March 2005 16:04


Abhi Beckert wrote:
> I hate to break the CSS party, but what's wrong with <br clear="both"
> />?

Nothing at all, except that that particular clearer is written
<br clear="left/right/all" /> and only works with transitional doctypes.

Something like:
br {font-size:1px; line-height: 0px; height: 0; }
..left {clear:left; }
..right {clear:right; }
..both {clear:both; }
....added to <br class="left/right/both" /> or other elements, work in
most cases. The rest is solved by 'floating containers' (my favorite),
and occasional use of the "clearfix" method.

The least predictable method is use of 'overflow: auto/hidden', which
may result in complete chaos. It's the easiest one to break, and should
only be used on web pages that are _thoroughly_ tested across browser-land.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
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: