ios - Show Entire Width of Website on iPhone and iPad -


i'd appreciate bit of advice skilled css. reason can't pinpoint, right side of website shows in iphone / ipad browser, , left 1/3rd of can't seen.

if explain causes issue , how can fixed, i'd grateful.

here's part of css sets layout:

body { position:absolute; width: 960px; top: 0px; left: 50%; margin-left: -480px; } 

first: try remove (position: absolute; width: 960px; top: 0px; left: 50%; margin-left: -480px;) body.

second: here's how center page width: 960px; margin: auto, put on #page

so css on body removed , css below on #page may work better

#page {     width: 960px;     margin: auto;     overflow: hidden; /* compensate element overflowing , messing layout */ } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -