4

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.

Oriol
  • 274,082
  • 63
  • 437
  • 513
Andy Hume
  • 40,474
  • 10
  • 47
  • 58

1 Answers1

0

You can fix some haslayout rendering problems using:

* {
 zoom: 1.0;
}

Good luck.

Barrie Reader
  • 10,647
  • 11
  • 71
  • 139
  • 1
    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 Apr 26 '10 at 15:26
  • Yeah, I've always read there's no way to reverse haslayout--you can force haslayout and some situations trigger haslayout naturally, but once an element haslayout, it can't be taken away...be interested to see what you come up with. – morewry Apr 28 '11 at 14:29