Previous Message
Next Message

RE: [css-d] CSS signatures

Sent by Means, Eric D on 30 September 2002 19:07


-----Original Message-----
From: jeff kiesel [EMAIL-REMOVED]]
Sent: Monday, September 30, 2002 1:38 PM
To: [EMAIL-REMOVED]
Subject: RE: [css-d] CSS signatures

> so i can have a whole stylesheet of body declarations
> followed by the bracket id stuff, and the body styles
> will only work on the matching id?

Yes.

> body[id="thatothersite"] div#content {
>   font-size: large;
> }

The above would apply to any site whose body tag(s) had an id of
"thatothersite" which contained a (had a descendent) div with an id of
"content".  The font size in that div would be set to large.  A site with a
different id (or no id) on its body tag, but with a div id'd as "content"
would be unchanged, as would all other divs on the "thatothersite" page.
Previous Message
Next Message

Possibly related: