Sent by Ben Curtis on 18 January 2005 22:10
>>> I'm looking for a way to make a display: inline statement(?) that is
>>> only read by Mac IE 5+ viewers.
>>
>> /* \*/ .content {display: inline;} /* IE5/Mac fix */
>
> Which is a perfect way to **hide** something from IE Mac. To show
> something to IE Mac, and then hide from others:
>
> selector {property:value} /* IE Mac */
> /* - \*/
> selector {property:value}
> /* end hiding */
The problem with this approach (although it is valid and works) is that
it treats your desired effect as the hack. IMO, this means that two or
three years from now you are much less likely to delete the right
thing.
I prefer my hacks to override the legit code with the hack declaration.
For Mac IE, I use the IE5/Mac Band Pass Filter:
http://www.stopdesign.com/examples/ie5mac-bpf/
/* pass rules to Mac IE only \*//*/
selector {property:value}
/**/
It basically uses the comment trick you provided to hide a comment from
Mac IE, thus exposing the enclosed rules only to Mac IE while the rest
see it as commented out.
--
Ben Curtis
WebSciences International
http://www.websciences.org/
v: (310) 478-6648
f: (310) 235-2067
______________________________________________________________________
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/