Previous Message
Next Message

Using IE conditional comments in standards mode XHTML

Sent by Terrence Wood on 16 September 2004 22:10


yes. both these methods work in XTML documents:

<!--[if lt IE 7]>
<link rel="stylesheet" href="path/to/ie.css" type="text/css" 
media="screen, projection" />
<![endif]-->


<!--[if lt IE 7]>
<style type="text/css" title="text/css">
/* <![CDATA[ */
#iestyle { foo: bar}
/* ]]> */
</style>
<![endif]-->

../tdw

On 17/9/04 4:56 AM, Arthur Parker wrote:

> This is probably off-topic for here, but does anyone know if you can use 
> IE conditional comments in XHTML in standards mode?  I'm trying to use 
> conditional comments for a style sheet to adjust a site for IE: when I 
> have an XML preamble (putting IE into quirks mode), it renders correctly 
> using the conditional comment to include the IE-specific styles; when I 
> take the preamble out, it doesn't even read the style links surrounded 
> by the conditional comments.  Do I need to write conditional comments 
> differently in XHTML standards mode, or can I use them at all?
> Arthur Parker
> 
> _________________________________________________________________
> Check out Election 2004 for up-to-date election news, plus voter tools 
> and more! http://special.msn.com/msn/election2004.armx
> 
> ______________________________________________________________________
> 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/

______________________________________________________________________
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: