Remove left and top padding from IFRAME in a cell?

Discussion in 'Javascript' started by FingersMeArse, Dec 1, 2004.

  1. Hello. :)

    I have an IFRAME inside a table's cell, but there seems
    to be some space between the top and left of the IFRAME
    and the sides of the cell that I can't seem to get rid of.

    Can anyone help me out here?
     
    FingersMeArse, Dec 1, 2004
    #1
    1. Advertising

  2. FingersMeArse

    Grant Wagner Guest

    FingersMeArse wrote:

    > I have an IFRAME inside a table's cell, but there seems
    > to be some space between the top and left of the IFRAME
    > and the sides of the cell that I can't seem to get rid of.
    >
    > Can anyone help me out here?


    Not a JavaScript question. But:

    <table border="1">
    <tr>
    <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td style="padding:0;margin:0;"><iframe
    src="http://www.yahoo.com" width="200"
    height="100"></iframe></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
    </tr>
    </table>

    seems to work fine.

    --
    Grant Wagner <>
    comp.lang.javascript FAQ - http://jibbering.com/faq
     
    Grant Wagner, Dec 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony M
    Replies:
    5
    Views:
    2,086
    Tony M
    Sep 7, 2005
  2. geniolatenio

    Left padding and IE

    geniolatenio, Mar 3, 2006, in forum: HTML
    Replies:
    33
    Views:
    1,242
    PeterMcC
    Mar 17, 2006
  3. nc
    Replies:
    0
    Views:
    161
  4. JimFurrow
    Replies:
    1
    Views:
    103
  5. Replies:
    1
    Views:
    154
    Matt Kruse
    Mar 15, 2006
Loading...

Share This Page