1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I center an iframe?

Discussion in 'HTML & Website Design' started by ronmojohny, Nov 15, 2008.

  1. #1
    I added amazon code to my site http://www.tv-repairman.com

    but it does not align the iframe in the center with FF or IE What kind of code would I need to fix this?

    Thanks RonMo
     
    ronmojohny, Nov 15, 2008 IP
  2. iwtmmo

    iwtmmo Active Member

    Messages:
    832
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Add the codes blow:

    <body onLoad="nifty();">
    <div align="center"> //Add this line code after <body onLoad="nifty();">


    </div> // Add this before </body>
    </body>
     
    iwtmmo, Nov 15, 2008 IP
  3. ronmojohny

    ronmojohny Active Member

    Messages:
    729
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    68
    #3
    That worked, thanks !!
     
    ronmojohny, Nov 16, 2008 IP
  4. cc2365

    cc2365 Member

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Your iframe was too big (width="90%"). Make it smaller and everything will be fine.
     
    cc2365, Nov 16, 2008 IP