From: Mike Soultanian <[EMAIL PROTECTED]>

>I also noticed that they do this:
>
>.modulecontainer div{border-style:solid;border-width:1px;margin:-2px 
>-8px;height:1em;}
>
>html>body .modulecontainer div{height:auto;}
>
>notice that they override in the height.  However, in this case it's 1em 
>vs auto.  Why are they doing this?
>
>I'd appreciate any input!

They are using the height: 1em to give "layout"[1] to IE browsers and the child 
selector/combinator to recover from that for other browsers. Feeding IE a small 
height value to trigger layout, when combined with other hiding techniques, has 
been named the "Holly hack."[2] 

The way the site in question wrote the rules to give IE layout and recover from 
that for other browsers will work until IE7 comes out. IE7 will read the child 
selector. I currently do not know how it will respond to the Holly hack 
technique, or if it will need that "help." Using conditional comments to target 
hacks and other workarounds to versions below IE7 is probably a smart way to go 
at the moment.   

Hope that helps,

~holly

[1]http://www.satzansatz.de/cssd/onhavinglayout.html
[2]http://www.communitymx.com/content/article.cfm?cid=C37E0  
 
                   
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to