Point one style class to another?
        Posted  
        
            by user246114
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user246114
        
        
        
        Published on 2010-06-14T12:31:32Z
        Indexed on 
            2010/06/14
            12:42 UTC
        
        
        Read the original article
        Hit count: 212
        
css
Hi,
I have a css class like:
.foo {
  background-color: red;
}
then I have a class specified for a list:
.list1 li {
  background-color: tan;
}
is it possible to set one style class to just point to another? Something like:
.list1 li {
  .foo;
}
not sure how to articulate that - I just want the .list li style to be whatever I define for the .foo class.
Thanks
© Stack Overflow or respective owner