tags:

views:

16

answers:

2

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
thanks! that's what I finally did
jaycode
A: 
.clear-nobr {clear:both;line-height:0!important;font-size:0!important;}
Ast Derek