Archived

This topic is now archived and is closed to further replies.

Good 'ol Table HTML

This topic is 5891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD>
One really thight table...
</TD>
</TR>
</TABLE>

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Well yes, but the thing is.. I've already got that I guess i should have mentioned it.

It's like there is always a little space left at the bottom of a row in each cell for some reason. So just between rows, there is a space, but between columns it's fine.

This is pretty much the code (pretty advanced stuff huh)

      
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
<TR>

<TD>
<!-- TOPLEFT-->
<IMG SRC="top_left.gif" BORDER="0" WIDTH="190" HEIGHT="115" HSPACE="0" VSPACE="0">
</TD>

<TD>
<!-- TOPRIGHT-->
<IMG SRC="top_right.gif" BORDER="0" WIDTH="610" HEIGHT="115" HSPACE="0" VSPACE="0">
</TD>

</TR>
<TR>

<TD>
<!-- BOTTOMLEFT-->
<IMG SRC="bottom_left.gif" BORDER="0" WIDTH="190" HEIGHT="485" HSPACE="0" VSPACE="0">
</TD>

<TD valign="top">
<!-- BOTTOMRIGHT-->
<IMG SRC="bottom_right.gif" BORDER="0" WIDTH="68" HEIGHT="46" HSPACE="0" VSPACE="0">
</TD>

</TR>

</TABLE>


Email
Website

"If you try and don't succeed, destroy all evidence that you tried."

Edited by - wojtos on October 19, 2001 6:35:34 PM

Edited by - wojtos on October 19, 2001 6:37:05 PM

Share this post


Link to post
Share on other sites
I just gave it a test, get rid of all the newlines like wrenhal said. Newlines between a </td> and <td> seem to not throw the spacing off.

"If consquences dictate our course of action, it doesn't matter what's right, it's only wrong if you get caught."
- Tool



// EDIT stupid little <> symbols...

Edited by - WayfarerX on October 19, 2001 6:47:43 PM

Share this post


Link to post
Share on other sites