Css specificity :last-child
- by Turbodurso
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!