1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iframe Alignment in IE vs. FF - What's the Deal?

Discussion in 'Black Hat SEO' started by bananahands, Mar 5, 2009.

  1. bananahands

    bananahands Regular Member

    Joined:
    Mar 25, 2008
    Messages:
    316
    Likes Received:
    75
    Location:
    In Ternets
    I've noticed that when I iframe an offer and insert the code into dreamweaver, when I test it the alignment will be off in IE but will look fine in firefox.

    This iframe needs to be in an exact location on the page, so any shifting leaves me with undesired results.

    It will usually shift about 10px higher horizontally in IE than in FF

    Does anyone know why this is and how to correct it? Any help would be greatly appreciated.

    I've googled it but found no clear cut answers.
     
    Last edited: Mar 5, 2009
  2. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,879
    Likes Received:
    1,932
    This has always been an issue, try using PHP, E.g. If browser = FF display iframe1 else if IE display iframe2 etc.
     
  3. gluebag

    gluebag Newbie

    Joined:
    Feb 4, 2009
    Messages:
    41
    Likes Received:
    15
    Got the source so I can take a peek, and I could maybe help? You can PM if you don't want public
     
  4. bananahands

    bananahands Regular Member

    Joined:
    Mar 25, 2008
    Messages:
    316
    Likes Received:
    75
    Location:
    In Ternets
    That sounds like it works, not exactly a php whiz though I'd probably need the code and a little help.

    PM sent gluebag
     
  5. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,879
    Likes Received:
    1,932
    See here for more info and code:
    Code:
    http://techpatterns.com/downloads/php_browser_detection.php
     
    • Thanks Thanks x 2
  6. WickednDivine

    WickednDivine Executive VIP Premium Member

    Joined:
    Jul 29, 2008
    Messages:
    468
    Likes Received:
    344
    make sure you zero out padding and margins in your css file

    Code:
    * {
        margin: 0px;
        padding: 0px;
    }
    
     
    • Thanks Thanks x 1