position:absolute difference in Iphone browser, Please help

Discussion in 'CSS' started by majorson, Dec 14, 2011.

  1. #1
    Hi there,

    In my website I'm putting the ad unit inside div and uses the position:absolute to localize it on the page. I do this to make this ad unit show up first on the code (Google encourage that).

    It's working great in every browser on the cumputer (even safari). But when I'm loading my website from an iphone, the ad much higher than it should.

    Here is my code:

    
    <div style="position:absolute;top:1530px;left:600px;z-index:2;">
       My adsense code
    </div>
    
    HTML:
    Someone knows this difference or how to solve it??
     
    majorson, Dec 14, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    Are you including the viewport meta tag?
    Without the complete markup or a link, that's all the wild hair guessing I'm doing.
     
    drhowarddrfine, Dec 14, 2011 IP
  3. majorson

    majorson Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No I didnt include any viewport meta tag.

    How it can help with my issue?
     
    majorson, Dec 15, 2011 IP