user1794295
user1794295

Reputation: 1839

Is it possible to make browsers ignore/disable all media queries?

Basically, I have to make a site fixed-width (temporarily) but unfortunately there are numerous CSS files with media queries all over the place, across all files. I've added a fixed pixel width to the body tag but the media queries are still having an effect when the browser is re-sized e.g. div elements clearing and shifting below other elements in the layout.

The only way I can think of is going through all the CSS files, commenting out all the media queries which could be a pain. Before I do this, do you know if there's a quicker way?

Thanks.

Upvotes: 0

Views: 642

Answers (1)

JerryHuang.me
JerryHuang.me

Reputation: 1790

Body or wrapper, set a static width and use override.

body{ width: 1280px !important; }

Upvotes: 1

Related Questions