Table Question

Discussion in 'HTML & Website Design' started by flyingdutchmen, Mar 10, 2011.

  1. #1
    Hey guys,

    Total Table noobie,
    i am trying to place 9 images within tables, 3 rows 3 columns.

    All should connect without any space between.

    Sofar it looks *somewhat* okay, yes there is still like 1 or 2 pixel space between the
    rows. Ive tried to play around with cellspacing; without succes


    What am i doing wrong here ?

    Any help would be appreciated

    code:









    <div id="container">

    <center>

    <tbody>
    <tr>
    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;"title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    </tr>
    <tr>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td align="center" width="25%">
    <a href="#"><img size="square" style="width: 80px; height: 80px; margin: 0px;" title="" src="preview.jpg"></a>
    </td>

    <td></td><td></td><td></td></tr></tbody>

    </center>
    </div>
     
    Last edited: Mar 10, 2011
    flyingdutchmen, Mar 10, 2011 IP
  2. mco65

    mco65 Member

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #2
    try;

    src="preview.jpg" border="0">
     
    mco65, Mar 10, 2011 IP
  3. flyingdutchmen

    flyingdutchmen Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, indeed when using <a> all images do get a border, border=o solves that.

    But what about the table marges, why do they still have marges horizontal and vertical ?
     
    flyingdutchmen, Mar 10, 2011 IP
  4. Trix

    Trix Peon

    Messages:
    192
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #4
    <table cellpadding=0 cellspacing=0>...</table>
     
    Trix, Mar 12, 2011 IP