Skip to content Skip to sidebar Skip to footer

Faking Max-device-width

To implement mobile website it would be useful to set max-device-width in my browser. I know plugins to fake the user-agent. It this also possible for the max-device-width? I would

Solution 1:

Chrome allows you to set device metrics, which are used in the media queries calculation for device width. To do that, open Developer Tools, click the gear icon on the lower right corner, and go to the Overrides tab.

Edit Jan. 17, 2014: Chrome now has an Emulation tab, that can be found alongside Console, in Developer Tools.

Solution 2:

In the common case desktop browsers can be used for sanity checks of html & css, but mobile browsers are very different in the html, css and javascript processing.

To "emulate"max-device-width you can replace max-device-width with max-width and resize your browser window to required size (actual versions of browsers supports max-width media-query instruction).

We use desktop browsers at the early stages of mobile web interface development and emulators in late. UI testers use real devices only.

Post a Comment for "Faking Max-device-width"