views:

52

answers:

1

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.

+1  A: 

You can fix some haslayout rendering problems using:

* {
 zoom: 1.0;
}

Good luck.

Neurofluxation
for some reason he does not want hasLayout, but zoom adds the layout...
Moak
...ok *Gets back in his box*
Neurofluxation
Yeah, it's the opposite I want. And no, zoom:0, won't do it. :)I'll try and come up with a simple test-case that I can link to to make this more clear.
Andy Hume