I like the hover effect to highlight rows in an unordered list. But when I have sublists, the result is a little much. The parent row surrounding the entire sublist is highlighted as well as the selected sublist item.
Is there a way to, using CSS, override the hover effect of the parent list item if the list item immediately contains an unordered list?
Fiddle: http://jsfiddle.net/LgCTm/
HTML;
<ul>
<li>Row 1</li>
<li>Row 2</li>
<li>
<ul>
<li>Row 3 Col 1</li>
<li>Row 3 Col 2</li>
</ul>
</li>
</ul>
CSS;
ul { padding: 5px 3px;
margin: 3px 0; }
li { padding: 3px 2px; background-color: #DDD; }
li:hover { background-color: #0F0; }