How to stop IE7 cleaning floats due to hasLayout

I have a containing element with the number of floating elements in it. This containing element also has a percentage width value applied to it.

In IE7, the content following the element containing the floats is cleared due to the width value that hasLayout gives it (I think!).

I don't want the contained hasLayout element, but I need it to have an explicit width. Is there a way around this problem in IE7, effectively forcing hasLayout = false.

+4
source share
1 answer

You can fix some problems with haslayout processing using:

* { zoom: 1.0; } 

Good luck.

0
source

Source: https://habr.com/ru/post/1308015/


All Articles