Css specificity :last-child

Posted by Turbodurso on Stack Overflow See other posts from Stack Overflow or by Turbodurso
Published on 2009-11-04T16:10:53Z Indexed on 2010/03/28 7:03 UTC
Read the original article Hit count: 444

Filed under:
|
|

I would like to use the following to target the last link (a) of the last ul inside my div. So this is what came to mind:

#menu ul:last-child li a {
       /*.....*/
}

I cant manually add a class to that element, and even if i wanted to do it dynamically i would still have to target the element the above way.

Any ideas why this is not working?

Thanks!

© Stack Overflow or respective owner

Related posts about css

Related posts about specificity