Posted by mbstevens on 03/23/07 20:53
Ciaran wrote:
> Hi guys thanks for the replies on this. There's a complicated reason
> behind it but what I was trying to do was define a new class that has
> all the same properties of some old class plus a few more. But I
> needed to do it without changing the html - just CSS. I've kind of
> given up on the idea now but it would still be interesting to know if
> it's possible to use classes like that.
>
Sure. Just generate your (X)HTML and CSS server side and make any
changes you want before sending the page.
But there are also all sorts of precedence and cascade rules that can be
applied, and your question leaves me unsure which kind of thing you are
imagining. Can you be more specific?
In the meantime, Google "CSS precedence" and "CSS cascade".
[Back to original message]
|