Laying <li> inside another <li>?
I have the following:
<ul id='foo'>
<li class='fooitem'>
<ul class='grok'>
<li class='grokitem'></li>
</ul>
</li>
</ul>
I want to style fooitem elements differently than grokitem elements:
#foo li {
background-color: red;
}
.grok li {
background-color: green;
}
but the definition of #foo li overrides the definition of .grok li, so everyone appears in red. How to define a style for grok items?
thank
+3