1

I have checked everything on my page and cannot figure out what is giving my website a large right-margin in iOS. It's driving me crazy. I've tried setting overflow: hidden; on the body to no avail. There is nothing that is wider than 960px. This is a very responsive design and all is working well except this one infuriating thing. Here is the URL to the dev site: http://ourcityourstory.com/dev/

Please see attached screenshot: iOS displaying large right-margin on webpage

Any help would be appreciated.

Update: I've tried fooling with the viewport. See this Stackoverflow post. But to no avail. I built the entire site off of the HTML 5 Boilerplate

Community
  • 1
  • 1
Jesse Atkinson
  • 10,586
  • 13
  • 42
  • 45

2 Answers2

3
       html,body
{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}

Add this to your CSS. then it should be working fine

0

The culprit was the Facebook share button. Instead of behaving like Twitter or Pinterest it iframes in and sets a width on the body of 500px!

A simple overflow: hidden; on my .social class fixed this.

Jesse Atkinson
  • 10,586
  • 13
  • 42
  • 45