Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

problem displaying website on iphone?

Featured Replies

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.

  • 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?

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.