Page appears off-centered on iPhone due to scrollbar

kate

New Member
In my CSS layout, I have a wrapper which is centered horizontally by applying \[code\]margin: auto\[/code\]. On the iPhone, the wrapper is positioned slightly to the left due to the vertical scrollbar (which only appears during a vertical swipe event). I tried resolving the issue by applying \[code\]overflow-x:hidden\[/code\] to the \[code\]body\[/code\] and \[code\]html\[/code\] tags. This solves the centering issue, but results in slow, cumbersome vertical scrolling (with no acceleration). Any ideas on the best way to achieve horizontal centering on iPhone?
 
Back
Top