Good 'ol Table HTML

Started by
14 comments, last by Nibbles 22 years, 5 months ago
Hi, I can''t believe i''m having troubles with this (since i''ve know i''ve done it before), how do you make a table have absolutely no space in-between its cells? The reason is that I want to have images seemlessly fit together in different cells. Thanks, Scott Email Website
"If you try and don''t succeed, destroy all evidence that you tried."
Advertisement
Oh man, I forgot too!
<table cellpadding=0 cellspacing=0>
Add the attributes ''cellpadding = "0" cellspacing = "0"'' to the table tag
Don't tell me my computers slow, all computers run at the same speed... with the power off.
CELLPADDING=0
CELLSPACING=0

...should in theory do it. In practice, it''s another story. That''s why I hate HTML: it isn''t logic; it''s voodoo.
Add the attributes ''cellpadding = "0" cellspacing = "0"'' to the table tag
Don't tell me my computers slow, all computers run at the same speed... with the power off.
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD>
One really thight table...
</TD>
</TR>
</TABLE>
quote:Original post by Anonymous Poster
<table cellpadding=0 cellspacing=0>


ALSO, don''t forget that when you add anything into the < tr > tags to make them all on one line. Like this:

  <tr><td><img src="banner.gif" height="80" width="640" alt="banner"></td></tr>  


as any space between the < tr > and < td > or < td > and < img > gets shown on screen.

BeS
It''s Da BOMB Baby!!!
. o O ~
A little nonsense now and then,
is relished by the wisest men
~ O o .
-- Willy Wonka
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka
ah yes now i remember...
CELLPADDING=0
CELLSPACING=0
sorry, but i just LOVE redundancy
quote:Original post by Anonymous Poster
ah yes now i remember...
CELLPADDING=0
CELLSPACING=0
sorry, but i just LOVE redundancy


NOT redundancy. padding is between internal element and cell border, spacing is between individual cells.


BeS
It''s Da BOMB Baby!!!
. o O ~
A little nonsense now and then,
is relished by the wisest men
~ O o .
-- Willy Wonka
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka

This topic is closed to new replies.

Advertisement