title: Fixed Position with Horizontal Overflow on IPhone
body: <p><a href="http://jimjamdesigns.co.uk/online-portfolio/animals.html" rel="nofollow noreferrer">http://jimjamdesigns.co.uk/online-portfolio/animals.html</a></p>
  
  <p>(<strong>On Iphones only</strong>) For some reason the fixed elements of my website above stretch across to the end of the last overflow element instead of ignoring the overflow and treating the width of the device itself. </p>
  
  <p>Stranger still, on the IPAD it works fine. </p>
  
  <p>I've tried these viewport meta tags:  </p>
  
  <pre><code>&lt;meta name="viewport" content="width=568px, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"&gt;
  
  &lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"&gt;
  
  &lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0,"&gt;
  </code></pre>
  
  <p>And some others along these lines.</p>
  
  <p>I have also trawled online for solutions and tried everyone but without success. Mostly the suggestions that says to use a different position that locks the entire site and disables the navigation to the overflow elements - which is obliviously undesirable.</p>
  
  <p>Here is the elements in question:</p>
  
  <pre><code>&lt;div id='back-nav'&gt;
  
  
  &lt;a id='bk-to-start' href='j-a-allan-childrensbooks.html'&gt;Back to the Start&lt;/a&gt;
  &lt;a id='bk-to-sib' href='siblings.html'&gt;Back to Animals&lt;/a&gt;
  
  &lt;/div&gt;
  
  &lt;div id='main-nav-wrap'&gt;
  &lt;ul id="ani-menu"&gt;
  
      &lt;li&gt;&lt;a id='ani' class='scroll-hori' href="#animals"&gt;Animals Vol. 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a id='ele' class='scroll-hori' href="#elle-wrap"&gt;Ellie the Acrobat Elephant&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a id='rat' class='scroll-hori' href="#rat-wrap"&gt;The Runaway Rat&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a id='vic' class='scroll-hori' href="#vic-wrap"&gt;Victor the Vegetarian Vulture&lt;/a&gt;&lt;/li&gt;
  
  
  &lt;/ul&gt;
  &lt;/div&gt;
  
  &lt;div id="title"&gt;&lt;/div&gt;
  &lt;h2 id='title2'&gt;Written &amp; Illustrated by James Allan&lt;/h2&gt;
  </code></pre>
  
  <p>And CSS with Media Queries</p>
  
  <pre><code>media screen and (max-width: 736px) and (min-width: 568px)
  #back-nav {
  margin: 1% 0 0 3%;
  z-index: 1002;
  }
  #back-nav {
  width: 100%;
  position: fixed;
  z-index: 1002;
  margin: 0.7% 0 0 5%;
  
  #main-nav-wrap {
  position: fixed;
  width: 100%;
  z-index: 999;
  
  @media screen and (max-width: 736px) and (min-width: 568px)
  #ani-menu {
  width: 78%;
  margin: 3.5% 0 0 5%;
  }
  #ani-menu {
  width: 9%;
  padding: 0;
  margin: 4% 0 0 6%;
  z-index: 1001;
  }
  
  @media screen and (max-width: 736px) and (min-width: 568px)
  #title {
  margin: 1% 0 0 27%;
  width: 47%;
  height: 25%;
  }
  #title {
  background-image: url(../optimised/animals-title.jpg)!important;
  background-size: 100% !important;
  background-repeat: no-repeat !important;
  z-index: 998;
  margin: 1% 0 0 29%;
  width: 42%;
  height: 25%;
  position: fixed;
  }
  
  @media screen and (max-width: 736px) and (min-width: 568px)
  #title2 {
  font-size: 11px;
  margin: 5.5% 0% 0% 0%;
  }
  #title2 {
  width: 100%;
  text-align: center;
  font-size: 1.3vw;
  font-weight: 500;
  margin: 4.5% 0% 0% 0%;
  color: #000;
  position: fixed;
  z-index: 999;
  }
  </code></pre>
  
  <p>If anyone can view this on an Iphone (I have only tested on Iphone 5) to see what is happening, any help stopping me from breaking some fundamental design ethics to depressingly act as a work around would be unfathomably appreciated...</p>