I
I
Ilya2012-08-27 14:45:10
HTML
Ilya, 2012-08-27 14:45:10

How to stretch a 240px layout to full screen (viewport) in mobile browsers?

I have an html page with a static width of 240px.
I would like to achieve the effect that all android / iPhone browsers stretch it to the full width of the window with disabled user-scalable

In the opposite direction (compression), everything works fine, but I did not find any options for expanding to fullscreen.

Can anyone come across?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
1nd1go, 2012-08-27
@1nd1go

<meta name="viewport" content="width=240">;

Like so.

D
Dmitry Mushtat, 2012-08-27
@Mushtat

I think android and iphone understand media queries
so why not use them?
Something like:
@media only screen and (min-width: 240px), only screen and (min-device-width: 240px) {
#more-than-240px {
background:red;
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question