How to stop IE7 clearing floats because of width property
Posted
by Andy Hume
on Stack Overflow
See other posts from Stack Overflow
or by Andy Hume
Published on 2010-04-26T11:35:07Z
Indexed on
2010/04/26
14:43 UTC
Read the original article
Hit count: 359
I have a containing element with a number of floated elements in it. That containing element also has a percentage width value applied to it.
In IE7, content following the element containing the floats is cleared because of the width value which gives it hasLayout (I think!).
I don't want the containing element to haveLayout, but I do need it to have an explicit width. Is there a way of working around this problem in IE7, effectively forcing hasLayout=false.
© Stack Overflow or respective owner