W3C home > Mailing lists > Public > www-style@w3.org > May 2002

Re: the . class selector

From: Peter S. Linss <peter@linss.com>
Date: Fri, 17 May 2002 11:43:03 -0700
Message-ID: <3CE54F37.70B59B5C@linss.com>
To: www-style@w3.org
Escape it. For example:
body\.head { color: red; }
body\.content { color: blue; }

See http://www.w3.org/TR/REC-CSS2/syndata.html#escaped-characters

Sigurd Lerstad wrote:

> Hello,
>
> I'm trying to apply a css stylesheet to nitf documents. I have a problem,
> many of the nitf elements have names like <body.head> and <body.content>,
> but the . symbol is reserved for specifying a class in a selector, how do I
> overcome this ?
>
> thanks,
>
> --
> Sigurd Lerstad
Received on Friday, 17 May 2002 14:43:49 GMT

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