I have an html snippet below that renders perfectly in all browsers. However, in the webkit on the iphone and ipad, when I pinch the page (so that it is smaller), I see a black border, which is the background color of the body, shining only on the right edge. This only happens when I specify the width of the div.headerpic. Since this is the only place in the document, I indicate the width, I wondered why it stops doing everything possible to the right (since this is theoretically the widest part of the document?).
I have attached a photo of what it looks like on my ipad.
<!doctype html> <html> <head> <style> body {background-color:#000;color:#231f20;margin:0;} #wrapper {background-color:#fff;min-height:1000px;} #header .headerpic {height:102px;padding-top:80px;margin:0 auto;width:986px;} #footer {color:#fff;} </style> </head> <body> <div id="wrapper"> <div id="header"> <div class="headerpic"> </div> </div> </div> <div id="footer"> </div> </body> </html>

html css iphone ipad webkit
robzolkos
source share