logo       

RE: CSS signatures: msg#01309

Subject: RE: CSS signatures
-----Original Message-----
From: jeff kiesel [mailto:jkies00@xxxxxxxxx]
Sent: Monday, September 30, 2002 1:38 PM
To: css-discuss@xxxxxxxxxxx
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.
_______________________________________________
css-discuss [css-discuss@xxxxxxxxxxx]
http://three.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning



<Prev in Thread] Current Thread [Next in Thread>