The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Can’t target sublist anchor
Hello, I have been working on a vertical sub nav bar and it’s working out so far, however, I cannot find out how to figure out how to change the color of the sub list anchor tag.
Here is the link and thank you for your time
http://codepen.io/seraphzz/pen/Lzyme
Change this
#nav li:hover a { color: #333; }
to this
#nav li:hover > a { color: #333; }
That should get you started.
Perfect! Thank you very much!