Feniks502
Feniks502

Reputation: 95

How to make page width equal to screen width in Opera Mobile, iOS, Android etc

Such browsers as Opera Mobile, iOS browser, Android browser (last two use webkit engine) emulate lager device's screen, than it is. For example: real device's screen width is 480px, but Opera Mobile shows the page, like the screen is 850px width.

How i can prevent such browsers from emulating larger device's screen size, and make them to display web page as wide, as real device's screen?

Upvotes: 0

Views: 1270

Answers (2)

David Nguyen
David Nguyen

Reputation: 8508

<meta name="viewport" content="width=device-width;" /> in the head should set the viewport to the device width

Upvotes: 0

Alex Gyoshev
Alex Gyoshev

Reputation: 11977

Use <meta name="viewport" />

Upvotes: 0

Related Questions