Removing space between cells in table

Discussion in 'HTML' started by Bundy, Aug 16, 2006.

  1. Bundy

    Bundy Guest

    Sorry for asking this but I cannot seem to get rid of the space between
    the cells.

    I have search various websites and newsgroups. I bet it is something
    obvious.

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Testing</title>

    </head>

    <body>
    <table width="100%" height="400">
    <tr>
    <td bgcolor="#00FF33" border="0" cellpadding="0"
    cellspacing="0">&nbsp;</td>
    <td bgcolor="#FFFF00" border="0" cellpadding="0"
    cellspacing="0">&nbsp;</td>
    <td bgcolor="#FF00FF" border="0" cellpadding="0"
    cellspacing="0">&nbsp;</td>
    </tr>
    </table>
    </body>
    </html>

    Regards

    Bundy
     
    Bundy, Aug 16, 2006
    #1
    1. Advertising

  2. "Bundy" <> skrev i meddelandet
    news:44e34b23$0$30063$...
    > Sorry for asking this but I cannot seem to get rid of the space between
    > the cells.
    >
    > I have search various websites and newsgroups. I bet it is something
    > obvious.
    >
    > <html xmlns="http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    > <title>Testing</title>
    >
    > </head>
    >
    > <body>
    > <table width="100%" height="400">
    > <tr>
    > <td bgcolor="#00FF33" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > <td bgcolor="#FFFF00" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > <td bgcolor="#FF00FF" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >
    > Regards
    >
    > Bundy



    Url?


    --
    Luigi Donatello Asero
    https://www.scaiecat-spa-gigi.com/
    你干什么明天早上 ?
     
    Luigi Donatello Asero, Aug 16, 2006
    #2
    1. Advertising

  3. Bundy wrote:
    > Sorry for asking this but I cannot seem to get rid of the space between
    > the cells.
    >
    > I have search various websites and newsgroups. I bet it is something
    > obvious.
    >
    > <html xmlns="http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    > <title>Testing</title>
    >
    > </head>
    >
    > <body>
    > <table width="100%" height="400">
    > <tr>
    > <td bgcolor="#00FF33" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > <td bgcolor="#FFFF00" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > <td bgcolor="#FF00FF" border="0" cellpadding="0"
    > cellspacing="0">&nbsp;</td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >


    CSS to the rescue! Stop trying to do it with presentational markup and
    learn about stylesheets:


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Using CSS</title>

    <style type="text/css">
    TABLE { border-collapse: collapse; width: 100%; height: 400px; }
    .example1 {color: #000000; background-color: #00ff33;}
    .example2 {color: #000000; background-color: #ffff00;}
    .example3 {color: #000000; background-color: #ff00ff;}
    </style>
    </head>
    <body>
    <table>
    <tr>
    <td class="example1">&nbsp;</td>
    <td class="example2">&nbsp;</td>
    <td class="example3">&nbsp;</td>
    </tr>
    </table>
    </body>
    </html>

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Aug 16, 2006
    #3
  4. Bundy

    Bundy Guest

    Thank you.

    Bundy
     
    Bundy, Aug 16, 2006
    #4
    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. Jan Aagaard
    Replies:
    1
    Views:
    767
    windandwaves
    Aug 25, 2005
  2. Shuo Xiang

    Stack space, global space, heap space

    Shuo Xiang, Jul 9, 2003, in forum: C Programming
    Replies:
    10
    Views:
    2,986
    Bryan Bullard
    Jul 11, 2003
  3. Christian Seberino
    Replies:
    21
    Views:
    1,811
    Stephen Horne
    Oct 27, 2003
  4. Ian Bicking
    Replies:
    2
    Views:
    1,112
    Steve Lamb
    Oct 23, 2003
  5. Ian Bicking
    Replies:
    2
    Views:
    787
    Michael Hudson
    Oct 24, 2003
Loading...

Share This Page