Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Troublesome nav bar dropdown styles Reply To: Troublesome nav bar dropdown styles

#241126
Paulie_D
Member

It’s because this

media screen and (min-width: 768px)
.site-nav li {
    float: left;
    padding: 10px 8px;
}

is affecting ALL your liand not just the top level ones.

You need to make it more specific

.site-nav  >  li { /* see the difference? */
    float: left;
    padding: 10px 8px;
}