Results 1 to 6 of 6

Thread: HTML table - how to make no spacing between rows?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    1

    HTML table - how to make no spacing between rows?

    Hi

    All I want is for there to be no space between the images (the tab images) and for there to be no space between
    those images and the row below it.

    I've tweaked every CSS and HTML tag I can think of. What am I missing?

    Thanks!


    Code:
    <table border=0 cellspacing=0 cellpadding=0 vspace=0>
         <tr>
              <td align=left><img src="images/logo_blue.gif"></td>
              <td align=right valign="bottom">Text here</td>
         </tr>
         <tr>
              <td align=center colspan=2 valign="bottom">
                   <img src="images/tab_blue_about.gif" width="160" height="35" border="0">
                   <img src="images/tab_blue_contact.gif" width="160" height="35" border="0">
                   <img src="images/tab_blue_products.gif" width="160" height="35" border="0">
                   <img src="images/tab_blue_phy.gif" width="160" height="35" border="0">
              </td>
         </tr>
         <tr>
              <td bgcolor="#0099CC" colspan=2 align=center valign=top>Text Here</td>
         </tr>
    </table>

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Code looks terrible, but anyway.

    Make sure you remove all padding, margin and border of img, tr and td.
    Code:
    tr, td, img {
      padding: 0;
      margin: 0;
      border: 0;
    }
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    missed that one
    colspan=2
    Last edited by bekkel; Oct 15th, 2003 at 02:02 PM.
    http://www.raketje.com coming..............soon................

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    There is one.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    New Member
    Join Date
    Oct 2003
    Location
    Cyprus
    Posts
    3

    Wink HTML Tables without white spaces

    Message on 26 Oct 2003 14:55 (+3:00 gmt)

    The answer to this question ended many hours of fruitless trying:

    Just write the table defenitions in one line, do not 'structure' your HTML text with indents and/or new lines.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Stupid IE
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width