Previous Message
Next Message

IE-Transparency with CSS

Sent by Gunlaug_Sørtun on 4 November 2005 16:04


Zoe M. Gillenwater wrote:
> So, I could also write something like this:
> 
> <!--[I love kittens]> yes I do <![end]-->

<!--[I love kittens]> me too ;-) <![end]-->
--------------

Just to extend that, in case someone use the information given by
Microsoft[1] to go a bit further...

The validator do not like what Microsoft call "Downlevel-revealed
Conditional Comments".

Example[2] - my own page on the subject of 'conditional comments':
<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.gunlaug.no%2Fcontents%2Fwd_1_02_01.html>
....is clearly non-valid because of such comments.

While the next page[3] where I use a "trick" comment in an ordinary
'conditional comment':
<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.gunlaug.no%2Fcontents%2Fwd_1_02_02.html>
....seems valid enough.

The 'ordinary vs. "trick" comment'[4] looks like this:
<!--[if !IE]> something for IE <![endif]-->
<!--[if !IE]><--> IE can't see this <!--><![endif]-->

This might be of use to someone for hiding CSS (or other stuff) from
IE/win, so I think I'm "on topic" ;-)

regards
	Georg

[1]http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp
[2]http://www.gunlaug.no/contents/wd_1_02_01.html
[3]http://www.gunlaug.no/contents/wd_1_02_02.html
[4]http://www.scss.com.au/family/andrew/webdesign/msie/
-- 
http://www.gunlaug.no
______________________________________________________________________
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/
libmime-decoders.c:474:MDECODE_decode_ISO:ERROR: The encoding character '
' is not a valid type of encoding
Previous Message
Next Message

Message thread: