using last-child in css
Posted
by Miral
on Stack Overflow
See other posts from Stack Overflow
or by Miral
Published on 2009-08-18T11:48:16Z
Indexed on
2010/04/08
21:23 UTC
Read the original article
Hit count: 332
last-child
|css
the below css doesnt works on below given html. The purpose is to apply the css on the last 'li', but it doesnt.
#refundReasonMenu #nav li:last-child { border-bottom: 1px solid #b5b5b5; }
and html looks like
<div id="refundReasonMenu"> <ul id="nav"> <li><a id="abc" href="#">abcde</a></li> <li><a id="def" href="#">xyz</a></li> </ul> </div>
© Stack Overflow or respective owner