Question

I have a site which uses a different menu for mobile devices than on the Desktop version using media queries. If I resize a desktop browser window to a mobile width and click the mobile navigation dropdown button and then resize the window back to desktop size, the mobile menu remains visible instead of changing back to display:none. Unfortunately this site is still in staging so I cannot show you a live example, but I was hoping someone could point me in the right direction of getting that DIV to become hidden again once the window is resized back to full screen.

Also, I realize that the chances of this scenario playing out in the real world are slim, but the client would like for it to be addressed anyway.

Thanks!

Was it helpful?

Solution

I figured out that it was javascript that was showing the DIV in the first place, not a media query, so I just added display:none to the div for the Desktop media query and the issue has gone away. Thanks!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top