Michael Wilson wrote:
If I have to use a box model hack (BMH), rather than a conditional comment, I prefer the following [01]: * html foo { /* Selector recognized by IE only */ height: 100%; /* Value for IE5.x/Win and IE6.x/Win QM */ hei\ght: auto; /* Value for IE6/Win */ }
I believe it is worth mentionning that IE5 Mac would also apply that second declaration.
Hi,
Sorry about that Thierry; I was trying to keep things simple. In fact, most modern browsers, or at least the ones that properly handle escapes, will apply it.
<http://www.dithered.com/css_filters/css_only/simplified_box_model.html>
If for some reason you need to hide this rule from IE5 Mac, you could use
foo {
height: auto
}/* Hide from IE-mac \*/
* html foo {
height: 100%;
hei\ght: auto;
}/* End hide from IE-mac */
or if you just need to hide the escaped declaration...
foo {
height: auto
}* html foo {
height: 100%;
}/* Hide from IE-mac \*/
* html foo {
hei\ght: auto;
}
/* End hide from IE-mac */
I think... :)
-- Best regards, Michael Wilson
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
