Posted By

jessibird on 05/29/09


ie hasLayout

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


A hasLayout fix without side-effects

 / Published in: CSS


Assign this class to any element that needs to have layout (hasLayout=true) and it will get it. ...with the style placed inside IE conditional comments, it will be ignored by the validator, which removes the only obstacle to using zoom:1 - which has no side effects*.

...*zoom is supported by IE5.5+, that is not supported by IE5.

  1. <!--[if IE]><style>.hasLayout { zoom: 1; }</style><![endif]-->

Report this snippet  

You need to login to post a comment.