Forum OpenACS Q&A: Re: css question

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;

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