I have a certain question about applying styles to an element through another CSS class. To be more specific, lets have a look at following. I have div:
<div class="main"></div>
with some styles:
.main { 
  background: red;
  display: inline;
  /* some other styles */
}
and I want to apply .another class to the div, but via its .main CSS.
.main {
  background: red;
  display: inline;
  .another
}
.another {
  width: 50px;
  height: 100px;
}
I assume that a preprocessor (SASS, Compass, etc.) is needed, but can someone advice if this is possible and what to keep in mind?
Thanks
 
     
     
     
    