Return to Snippet

Revision: 14300
at May 29, 2009 01:09 by jessibird


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

Initial URL
http://csscreator.com/node/9267

Initial Description
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.

Initial Title
A hasLayout fix without side-effects

Initial Tags
ie

Initial Language
CSS