Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Location
    Columbus, OH
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I can't get my website background to show up on iPad

    The website is http://www.freshgames.com/

    I'm relatively new to this so it is frustrating. I have set up a separate css file for the ipad (ipad.css) and have tried a number of solutions for fixes.

    My website works fine on browsers, but the background disappears on the iPad. It also shifts the body over to the left. Please help with possible solutions.

  • #2
    New Coder
    Join Date
    Feb 2007
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Method for Detecting Browser

    If this not relevant or something you already know, please pardon the message.

    I did some research about methods for detecting which browser is accessing a website, and I came across some commands that can be placed into a file named .htaccess

    The commands appear to detect a user agent string, and based on this string, the person viewing the site is redirected to a specific page.

    The lines of code for the .htaccess file are as follows:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$
    RewriteRule ^(.*)/$ http://specifyredirectaddresshere [R=301,NC,L]
    RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
    RewriteRule ^(.*)$ http://specifyredirectaddresshere [R=301,NC,L]
    RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
    RewriteRule ^(.*)$ http://specifyredirectaddresshere [R=301,NC,L]
    RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
    RewriteRule ^(.*)$ http://specifyredirectaddresshere [R=301,NC,L]
    RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$
    RewriteRule ^(.*)$ http://specifyredirectaddresshere [R=301,NC,L]


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •