Reuse classes in an id based css

Posted by C. Ross on Stack Overflow See other posts from Stack Overflow or by C. Ross
Published on 2010-03-08T19:30:34Z Indexed on 2010/03/08 19:36 UTC
Read the original article Hit count: 317

Filed under:
|

I have a id based CSS file where I noticed I'm mostly repeating myself. What I'd like to do is specify that an item with an id follows a certain class + some other rules. For example: I'd like id id1 to have all the properties of class LinkButton applied as well as the value back-color: green. Is there a way to do this in the css file? Is there a better way to do what I'm looking at?

© Stack Overflow or respective owner

Related posts about html

Related posts about css