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

Home Forums JavaScript Menu navigation disappear at width Reply To: Menu navigation disappear at width


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.