My question should be pretty strait forward. For some reason I can't wrap my head around it today.
I'm making a menu with a structure like so
<div class="wrapper"> <ul> <li class="menu-item"><a href="#">Menu Item</a> <div class="inner"> <a href="#">Login</a> </div> </li> </ul> </div> I am trying to target the login link using the following css selector:
.inner a{} The selector is working, however the following selector is taking css presidence, and overriding the above selector:
li.menu-item a{} I'm totally baffled. Why would the second selector take style preference over the first? How would you guys recommend I target the above "a" elements?