Hi, I'm trying to get the last element that belongs to a specific
class. For example,
<ul>
<li>aaa</li>
<li class="special">bbb</li>
<li>ccc</li>
<li>ddd</li>
<li>eee</li>
<li class="special">fff</li>
<li class="special">ggg</li>
<li>hhh</li>
</ul>
I need to get the last 'li' with the class 'special' ('<li
class="special">ggg</li>'), is it possible to do that without JS?
I tried '.special:last-child { color:red; }', but it doesn't seem to
work.
Thanks!
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/