W3C home > Mailing lists > Public > www-style@w3.org > October 1996

Re: <-- use or not ???

From: <dseibert@sqwest.bc.ca>
Date: Wed, 16 Oct 1996 10:13:23 -0700 (PDT)
Message-Id: <199610161713.AA11204@sqye.west.sq.com>
To: webman@netroute.net
Cc: www-style@w3.org
> 
> I was recently writing a style sheet, I noticed it wasn't working.  When I
> took the <-- out it worked.
> 
> 
> How do I hide the css (from old browsers) while still being able to use it
> with css compliant browsers.
> 
> Am I missing something here?
> 
> <style type="text/css">
> <--
> body   {  background:grey;
>           color:blue
>    }
> 
> P  {  color:blue;
>       font:18px, Impact
>    } 
> 
>       /* etc */
> -->
> </style>

Yes, you're missing something - SGML comment declarations begin with
<!--, not <--.  If you add the exlamation point your stylesheet should
work.

David
Received on Wednesday, 16 October 1996 13:15:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:45 GMT