Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix the DOM in Mobile Safari
    primarykey
    data
    text
    <p>I have a one page website with six sections. I would like each section to fill the entire screen or viewport (specifically an iPhone 4s). Currently, it is like each section is stacked on top of each other (this is not what I want).</p> <p>HTML Tag: </p> <pre><code>&lt;meta name="viewport" content="intial-scale = 1.0, maximum-scale = 1.0" /&gt; </code></pre> <p>HTML (only posting one section - each section is essentially the same):</p> <pre><code>&lt;section class="container" id="music"&gt; &lt;div class="center"&gt; &lt;div class="info"&gt; &lt;h1 class="headline"&gt;music&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Black Hour EP&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;You're Invited (Coming Soon)&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; </code></pre> <p>CSS @media query:</p> <pre><code>@media (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) { #home{width: 100%; background-image: url(../images/landingPage@2x.jpg);} #navbar{display: none;} #albumCover{width: 400px; height: 400px; margin-top: 175px;} #albumCover p{font-size: 6em; padding-top: 150px;} #about{width: 100%; background-image: url(../images/about@2x.jpg);} .info{width: 500px; height: 500px; margin: 200px 0 0 200px;} .headline{font-size: 3em; margin: -20px 0 5px 0;} .info p{padding-top: 30px; font-size: 1em; margin-bottom: -100px;} #music{width: 100%; background-image: url(../images/music@2x.jpg);}} .info ul li{text-align: center; font-family: eb-garamond, sans-serif; font-size: 1.5em; line-height: 2em; text-transform: capitalize;} /* Lighthouse */ iframe{width: 50%; height: 50%;} #close{margin: 50px 0 15px 350px; padding: auto 5px;} #videos{width: 100%; background-image: url(../images/videos@2x.jpg);}} #connect{width: 100%; background-image: url(../images/connect@2x.jpg);}} #contact{width: 100%; background-image: url(../images/contact@2x.jpg);}} #email a{font-size: .625em;} .primeLine{font-size: 1em;} #email li{margin: 0;} } </code></pre> <p>Here is a screen shot of the current state: <a href="http://postimg.org/image/ya1488ebb/" rel="nofollow">http://postimg.org/image/ya1488ebb/</a></p> <p>Does anybody have any ideas that could help me out or get me thinking along the right track?</p>
    singulars
    1. This table or related slice is empty.
    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