Say I have two unordered lists in one stylesheet. Both should be using the same styling, but both are nested in different parent elements:
#foo{
position:absolute;
...
ul{
list-style-type:none;
li{
color:red;
...
}
}
}
#bar{
position:relative;
...
ul{
list-style-type:none;
li{
color:red;
...
}
}
}
Is there a way to create something similar to a Rails' partial, where a single block of code can be reused / rendered inside different parent elements?