June 4, 201214 yr Hi all, I am in the process of developing a website - www.battlesnails.com. The website appears fine on computer browsers (I.e, mozilla etc). However when I load the website on the I-phone, there is a green Bar going down the right hand side of the screen... of which sometimes text from the main content area leaks onto it slightly. Its sorta like the iphone detects this as 100%, and the green area is past 100%, and where the scroll bar appears (except scrollbar is invisible unless you actually scroll and even then you still see it. I ideally need the correct background to flood through this area but have not yet figured a means of accomplishing this, can anyone help? Thanks. Can upload a pic on request.
June 4, 201214 yr Author Note that I can fix this by making the width of content area, menu and footer 102% instead of 100%. This fixes the iphone bug, however it also creates a on-computer browser bug of a horizontal scroll bar and added unwanted space.. is there another way around it?
June 4, 201214 yr Author I happen to have come across a fix for this so I thought I would share. If anyone has a more "web standard" method then feel free to contribute. This is the code I used to fix.. TemplateStart.php: <link type="text/css" rel="stylesheet" href="css/main.css" /> <?php if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod')) { ?> <link type="text/css" rel="stylesheet" href="css/iphonefix.css" /> <?php } ?> iphonefix.css: #contentArea{ width: 102%; } #menu{ width: 102%; } #titleBlock{ width: 102%; } #footer{ width: 102%; }
Create an account or sign in to comment