Previous Message
Next Message

CSS underscore hack

Sent by Zoe M. Gillenwater on 30 July 2004 14:02


Francesco wrote:

> Il giorno 29/lug/04, alle 12:39, Colm McBarron ha scritto:
>
>> Just wondering what is the current thinking on using the underscore 
>> hack for IE/win browsers?
>>
>> I know it doesn't validate but is very useful for fixing quirks in 
>> the IE browser.
>
>
> I did not know this hack, personally I use the Holly hack to target IE 
> WIN only.
> It seems to work fine for me and it validates so I can't see the point 
> of using the underscore hack.
> Let me know if I'm missing something.


No, you don't use the Holly Hack to target WinIE, you use it give WinIE 
a small height.  You use the  Star HTML part of it to target IE, and the 
Mac Backslash part of it to hide it from MacIE, so only WinIE sees the 
height: 1%.  The Holly Hack is made up of two separate hacks (Star HTML 
and Mac Backslash) and the tiny height property.

Here's how to target WinIE:
http://www.info.com.ph/~etan/w3pantheon/style/starhtmlbug.html

And here's how to target WinIE5x:
http://www.info.com.ph/~etan/w3pantheon/style/modifiedsbmh.html

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: