Home › Forums › JavaScript › Menu navigation disappear at width › Reply To: Menu navigation disappear at width
August 28, 2014 at 8:57 pm
#180984
Participant
jQuery’s .slideToggle
method animates the height of the element, and then sets display: none
. You can add another media query to make sure the display is set back to block
when wider than 750px.
@media (min-width:751px){
nav ul{ display:block !important; }
}
On an unrelated note, why are you passing "show"
to slideToggle
? Looking at the docs, seems the only string arguments it expects are easing or duration, and “show” doesn’t mean anything in either case.