A hasLayout fix without side-effects


/ Published in: CSS
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. <!--[if IE]><style>.hasLayout { zoom: 1; }</style><![endif]-->

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.