Adding clear: left, clear: right, or clear:both to an element would create an extra carriage return in Firefox, but not in Chrome and Safari, it is very frustrating, anyone know how to fix this?
A:
If you are adding the style to the line break tag (<br>
) then this will add a line break as should be expected. You could try using a div instead since they have zero height when there is no content:
<div style="clear:both"></div>
DisgruntledGoat
2010-07-08 18:19:55
thanks! that's what I finally did
jaycode
2010-08-23 06:12:50
A:
.clear-nobr {clear:both;line-height:0!important;font-size:0!important;}
Ast Derek
2010-07-08 18:34:11