problem with iframe

Discussion in 'HTML & Website Design' started by zodiac, Feb 7, 2007.

  1. #1
    i use iframes for adbrite ads.in firefox it is fine,but in IE the ad ends up off center to the bottom right.
    if the background is a solid color i can widen the iframe and give it a background color.i have one site that i cant do that.
    i could put the ad code in the header,but i dont want to and it looks fine in IE,but not in firefox.
    <table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0"> 
    	<tr> 
    		<td align="center" valign="top">
    		<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
      
            <td width="60%" height="110" background="themes/phpib2/images/head_bg.gif">
           <iframe src="http://www.mysite.com/path/to/file.html" scrolling="no" allowtransparency="true" frameborder="0" height="60" width="468"></iframe>
            </td> 
            
            <td width="40%" height="110" background="themes/phpib2/images/head_bg.gif">  
    </td>
    
            </tr>
    </table>
    PHP:

     
    zodiac, Feb 7, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    I would like to help but the details you're giving are not enough. Probably a live website link would help. I would only bother if I had a live example to look at and a code that needs fixed can be accessed for testing without one needing to figure out where to install it on local servers and stuff. Getting the point?
     
    Clive, Feb 7, 2007 IP
  3. zodiac

    zodiac Peon

    Messages:
    2,661
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i may have fixed it by putting
    <style type="text/css">
    body {background-color: transparent}
    </style>
    above the ad code.
     
    zodiac, Feb 8, 2007 IP