tags:

views:

92

answers:

3

How to clear float:left & float:right on CSS

You may look an example here

The wrap id overlap to the header & search. How to fix it without to put the clear:both

+5  A: 

overflow:hidden on #wrap. Since you already have a width it automatically clears in IE.

http://work.arounds.org/clearing-floats/

Demo

meder
nice. thanks meder.
kampit
yup, no problemo.
meder
+1  A: 

If you're asking how to prevent the wrap from overlapping the two divs then: wrap should have the attribute overflow: auto;

Mike
A: 

You can clear floated divs with br clear="all" if you don't like clear:both

Gil Duzanski