Re: <-- use or not ???

> 
> 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 UTC