Note that there are some explanatory texts on larger screens.

plurals
  1. POAdjusting layout for iPhone 5 resolution
    primarykey
    data
    text
    <p>In an HTML project, I'm using css to adjust the content layout for specific screen sizes, e.g. the iPad landscape;</p> <pre><code>/* ########################################################################## ########################################################################## iPad Layout Landscape: 1024px. Content-Element width: 896px. Gutters: 24px. Outer content margins: 64px. Inherits styles from: Default Layout. ########################################################################## cols 1 2 3 4 5 6 7 8 9 10 px 68 160 252 344 436 528 620 712 804 896 ########################################################################## ########################################################################## */ @media only screen and (max-device-width: 1024px) and (orientation:landscape) { } </code></pre> <p>and that one works but for iPhone 5 portrait, I'm using; </p> <pre><code> /* iPhone 5 portrait view */ @media screen and (max-device-width: 640px) and (max-device-height: 1136px) and (orientation:portrait) { } </code></pre> <p>which doesn't work, that is it's shown as the iPhone 4 version (</p> <pre><code>/* ######################################################################### ########################################################################## Overrides styles for devices with a device-pixel-ratio of 2+, such as iPhone 4. ######################################################################### ########################################################################## */ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) { } </code></pre> <p>).<br> The point is, these work for the devices described but on the iPhone 5, it is shown with the iPhone 4 settings, it needs to be made for the Retina 4-inch properties </p> <p>Any ideas why and how to make it work? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload