Forums

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

Home Forums JavaScript Navigation displays block after multiple resizes Reply To: Navigation displays block after multiple resizes

#234962
Shikkediel
Participant

Like this?

Demo

What you describe happens because .show() adds display: block as inline style. And it’s overriding the CSS you defined for it with that. I’ve just put a .hide() in the else condition. Also cached the $('nav ul') selector since it’s used quite a few times.