Jeremy Boggs wrote:

>[...]
>
>http://clioweb.org/liquidholygrail/
>
>One problem includes one of the hacks I'm using: the " _property: "
>hack, to send styles to IE only. This of course invalidates the CSS,
>so I'm hoping there's a better solution.
>
Hi Jeremy,
The new magic word is "conditional comment". Basic is:
= = = = =
<!--[if IE]>
<.....>html-code</.....>
<![endif]-->
= = = = =
The middle part is only seen by IE, and it is correct html (cq inside: 
correct css).
You can specify versions of IE: <!--[if lte IE 6]> means: "if less then 
or equal to IE6", and so on.
Application for IE-only styles (in the <head>):
= = = = =
<!--[if IE]>
<style type="text/css">
#ie-trouble { display: none; }
</style>
<![endif]-->
= = = = =
Or pointing to a special IE-only stylesheet:
= = = = =
<link rel="stylesheet" type="text/css" href="general.css">
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie-only.css">
<![endif]-->
= = = = =
More you can find at the MS-site 
<http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp>.
Also for example on Quirksmode 
<http://www.quirksmode.org/css/condcom.html> and many others: Google for 
"conditional comments"!

francky
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to