Previous Message
Next Message

Reseting styles with the use of conditional comments

Sent by Gunlaug_Sørtun on 2 May 2006 21:09


Guillaume wrote:
> Now I would like to reset those styles for Ie 5.0 for example, to
> make sure he only has the text version and no styles at all... I
> thought throwing to this browser an empty style sheet through 
> conditional comments... But apparently it doesn't work this way...

An empty stylesheet does exactly "nothing".

If you want to reset styles in IE5.0, then you will have to override
each declaration with a new one - similar to default - for that browser
only.
Such a stylesheet must then be served last, like your example shows or
with an ordinary stylesheet-link...

<!--[if IE 5.0]>
<link rel="stylesheet" href="ie5.0" type="text/css" />
<![endif]-->

I don't think it is worth the extra work.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: