views:

31

answers:

1

I have a construction that works well in all browsers except iPhone Safari, it sticks to left side though it's not supposed to.

.home{width: 980px; margin: 0px auto 0px auto;}

any advice?

A: 

Anyway I don't think IPhone screen width is more 980px ^^

MatTheCat
ya, 980px is greater than screen width, but others divs in my layout has the same width (I just checking the site output for iPhone that has no mobile version) and everything looks good except margin auto for width greater than screen width
se_pavel
How can margin:auto; center the elements if it is larger than its content ??
MatTheCat
It isn't possible to center content that is wider then the screen. Have you ever seen a site where you can scroll left at the initial load? I have not.
Justus Romijn