Home › Forums › CSS › Troublesome nav bar dropdown styles › Reply To: Troublesome nav bar dropdown styles
May 1, 2016 at 9:27 am
#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 li
and not just the top level ones.
You need to make it more specific
.site-nav > li { /* see the difference? */
float: left;
padding: 10px 8px;
}