Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use the greater than symbol to target the first descendant, e.g,

    .nav-menu > li:nth-child(3)

    Where are you adding this CSS btw?

    Thread Starter mrapi

    (@mrapi)

    Indeed it works,that means “targets any li elements that
    are children of an .nav-menu element,but not other li
    li elements in
    the page”
    I edit css of a child theme
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS:target 3th menu and not 3th submenu’ is closed to new replies.