Home › Forums › JavaScript › Navigation displays block after multiple resizes › Reply To: Navigation displays block after multiple resizes
November 16, 2015 at 11:33 pm
#234962
Shikkediel
Participant
Like this?
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.