开发者

How do you implement CSS without to have clear:both on float left and float right

开发者 https://www.devze.com 2023-01-09 01:46 出处:网络
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 i开发者_JS百科t without to put the clear:both overflow:hidden

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 i开发者_JS百科t without to put the clear:both


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

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

Demo


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号