For example I have this css class:
.class{
background:#FFF;
border:1px solid #ccc
}
And I have this HTML structure:
<ul class="list">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
And I would like to use the .class
on the list. li
elements without adding the class="class"
to the <li>
's or rewriting the whole class for the <li>
's.
Something like:
.list li{
.class
}
Is this possible somehow?