Home
The Toolkit for Online Communities
17104 Community Members, 0 members online, 2439 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : css question : One Message

Forum OpenACS Q&A: Re: css question

Collapse
5: Re: css question (response to 1)
Posted by Sean Redmond on

The short answer is "no". But how you do it depends on your stylesheet. In the first place you're talking about a contextual selector div.asdf div (i.e. a div with no class inside a div with a class of asdf). You could save yourself some "cloning" by combining the definitions of body and div.asdf div, but you'll have to explicitly spell out what would otherwise be defaults:

body, div.asdf div {
    font-style: normal;
    font-weight: normal;
    font-size:medium;
}

div.asdf {
    font-style: italic;
    font-weight: bold;
    font-size: large;
}