Sent by Dave Polaschek on 27 February 2002 12:12
I've got a class defined in my style sheet: .fineprint {font-size:smaller}
And I'd like to define another class based on it. For example, I'd like
.finequote to be .fineprint plus font-style:italic.
Is there a way to define one class in terms of another like this? I know
I could do it via the cascade by nesting one element inside another, but
I'd prefer not to do that. I'd rather keep the the markup as clean (and
minimal) as possible.
I could also spell out .finequote as {font-size:smaller;
font-style:italic}, but since the one class depends (at least in my mind)
on the other, I'd like to preserve that relationship in the style sheet.
Any suggestions welcome.
-DaveP
Dave Polaschek - http://betternerds.com/ http://davespicks.com/
Exercise your First and Second Amendment Rights at the same time
Shoot the book burners.