Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Table puzzle

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table puzzle

    I have a couple of images 75 pixels in height that I want across the header portion of a page. I want to put them in a table that is no bigger than they are - 75 pixels. It seems to me that the code below should do it, but instead the table occupies a bit more than the 75 pixels - more like about 80 or 82. Can anyone spot why?

    G

    <BODY BGCOLOR=#c6e1bb MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 LINK=#660000 VLINK=#660000 ALINK=#996633 >


    <!--------------- Header---------------->

    <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR=005e00 HEIGHT=75>


    <TR>
    <TD VALIGN=top ALIGN=LEFT >
    <a href="default.asp"><IMG SRC="ltop001.gif" WIDTH=272 HEIGHT=75 BORDER=0 ALT="logo"></a>
    </TD>

    <TD VALIGN=TOP ALIGN=right>
    <a href="direct.html"><IMG SRC="ltop6.jpg" WIDTH=214 HEIGHT=75 BORDER=0 ></a>
    </TD>
    </TR>

    </TABLE>

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Cut the space out between the <td> and the image

    <td><img src....></td>

    That cuts out the "natural" spacing

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Geez, that's incredible. Thanks Nightfire.

    G


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •