F
Fister
Hi
I've got a problem with my menu / unordered list. I want to display a list
item marker when the item is selected but when constructed the following
way the list items below the selected list item also get the list item marker.
I understand that the list items below are in the selected list item but
is there anyway to get around this or should I structure my list otherwise
(how?).
<ul>
<li><a href="#">Item 1</a></li>
<li class="selected"><a href="#">Item 2</a>
<ul>
<li><a href="#">Item 2.1</a></li>
<li><a href="#">Item 2.2</a></li>
</ul>
</li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
li.selected
{
list-style-image: url(Marker.jpg);
}
This is what I want
Item 1
Item 2.2
Item 3
Item 4
Currently I have
Item 1
Item
I've got a problem with my menu / unordered list. I want to display a list
item marker when the item is selected but when constructed the following
way the list items below the selected list item also get the list item marker.
I understand that the list items below are in the selected list item but
is there anyway to get around this or should I structure my list otherwise
(how?).
<ul>
<li><a href="#">Item 1</a></li>
<li class="selected"><a href="#">Item 2</a>
<ul>
<li><a href="#">Item 2.1</a></li>
<li><a href="#">Item 2.2</a></li>
</ul>
</li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
li.selected
{
list-style-image: url(Marker.jpg);
}
This is what I want
Item 1
Item 2.1Item 2
Item 2.2
Item 3
Item 4
Currently I have
Item 1
Item 3Item 2
> Item 2.1
> Item 2.2
Item