Web Analytics Made Easy -
StatCounter Table puzzle - CodingForum

Announcement

Collapse
No announcement yet.

Table puzzle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    Cut the space out between the <td> and the image

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

    That cuts out the "natural" spacing

    Comment


    • #3
      Geez, that's incredible. Thanks Nightfire.

      G

      Comment

      Working...
      X