Forums

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

Home Forums JavaScript jquery window width condition Re: jquery window width condition

#105163
Senff
Participant

I’d definitely use media queries here, and not the jQuery route, if you just want to hide it when screens are less than 800 wide.

Something like this:

@media only screen and (max-device-width: 800px) {
#header {display:none;}
}