Edit 2 This question is looking for a sleek, clean way to rephrase text on iPhone.
Improved web application with two different widths (320 and 480) depending on the orientation. The goal is also to have 480 widely available for non-mobile (i.e. 480 pixels wide screens). It works mostly at will, except when the page is being updated in the landscape. This forces the layout to return to 320 (on the left side) and leave a dark bar on the right.



He turns back to the portrait and back again to resize and image 2. This is a matter of convenience for me. The page is resizable and rotates perfectly on Android and is full-sized on the desktop. Does anyone know what I am missing? I tried many iterations of this and read about a few solution errors. None of the ideas change the result. About the file to receive the error message. I have a hunch that it is in the #container media content lines.
Edit: The site was created for mobile devices (320 widescreen). The desire to expand the use of space when that space is available. The main intention is to reschedule the text and elements. . When looking at photos, pay attention to the alignment of input fields with their labels.
I tried 2 approaches to this work. Another was using javascript to change the width of the #container. Currently used with the following media queries at the end of the built-in style sheet. I prefer to solve this with media queries.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="HandheldFriendly" content="True"> <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes"> <title>The Title</title> <style type="text/css"> html { margin: 0; padding: 0; } body { font: 14px Verdana, Geneva, Arial, Helvetica, sans-serif; } #container { margin: auto; width: 480px; ..... @media screen and (max-width: 480px) { body { -webkit-text-size-adjust: none; } #container { max-width: 480px !important; width: 100% !important; } } @media screen and (max-width: 320px) { body { -webkit-text-size-adjust: none; } #container { max-width: 320px !important; width: 100% !important; } } </style> .....
source share