If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #7464

    what is the difference between them?



    The first one targets the list item, the second one targets the link in that list item.


    ok, topic has a misleading title

    one is

    #top .catnav li a


    .catnav li a

    so the difference is only #top – what does it change?


    The top one will only work if theres a listed link in the catnav in the #top div. The second one will target all listed links within a catnav class. This however only occurs in your #top.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘#top .catnav li vs. .catnav li a’ is closed to new replies.