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 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry I need to redirect users based on browser...small problem but very frustrating.

    I have a page up with an iframe that's approximately 300px by 405px. When I load up the site in FF and IE, it frames just fine. However, in Chrome and Opera the iframe is shifted upwards and is off-frame.

    I've tried looking for a solution to center the iframe correctly. Someone said to make a php code that loads 2 different iframes depending on browser (1 iframe for IE/FF and another frame for OP/CH). I have no knowledge of php coding, so I couldn't get it to work.


    So now, I think I'm limited to redirecting users based on browser type. If the user is using FF or IE, I'll redirect them to my original page. If they're using some other browser, I'll redirect them to a different page without the iframe.

    I've tried to set up a redirector, but it has trouble distinguishing between FF and Chrome. It treats them exactly the same.

    Does anyone have any advice on what to do? I've done tons of searching for what seems to be such a small problem. Someone please enlighten me.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,675
    Thanks
    6
    Thanked 1,007 Times in 980 Posts
    The first thought that comes to my mind when reading this is: you must be doing something wrong because usually what you want is not necessary. However, I can’t tell whether I’m correct with my assumption (although I’m pretty certain) and/or how to fix your problem if you’re not showing us your code, preferably a link to the page in question.


  •  

    Posting Permissions

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