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

    what is the difference between them?

    #58098

    Hi,

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

    #58099

    ok, topic has a misleading title

    one is

    #top .catnav li a

    second

    .catnav li a

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

    #58100

    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.