newbie TABLE puzzle!!!

C

Carl Wan

Thanks in advance for helping solve the following puzzle: how come a
table cell with a one-pixel gif doesn't stay one pixel high when content
is added to adjacent cell.

Here are two examples (see the "comments" I put next to the cell)

FIRST TABLE:

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD> // appears one-pixel
high
<TD ROWSPAN="2">small amount of text here</TD>
</TR>
<TR>
<TD>miscellaneous filler</TD>
</TR>
</TABLE>


SECOND TABLE:

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD> // appears 30 pixels
high!
<TD ROWSPAN="2">MANY paragraphs of text here in this cell.</TD>
</TR>
<TR>
<TD>miscellaneous filler</TD>
</TR>
</TABLE>

....so how come when there is alot of "stuff" in that adjacent cell, the
cell with the one-pixel gif strrrrretches???

Thank you!
 
R

Rob McAninch

Carl Wan said:
Thanks in advance for helping solve the following puzzle: how
come a table cell with a one-pixel gif doesn't stay one pixel
high when content is added to adjacent cell.

Because the row and column width try to be uniform, that is the
concept of a table.
Here are two examples (see the "comments" I put next to the
cell)

Hm, javascript comments in an HTML example? :)
FIRST TABLE:

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD> // appears
one-pixel high
<TD ROWSPAN="2">small amount of text here</TD>
</TR>
<TR>
<TD>miscellaneous filler</TD>
</TR>
</TABLE>


SECOND TABLE:

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><IMG SRC="spacer.gif" WIDTH=1 HEIGHT=1></TD> // appears 30
pixels high!
<TD ROWSPAN="2">MANY paragraphs of text here in this
cell.</TD> </TR>
<TR>
<TD>miscellaneous filler</TD>
</TR>
</TABLE>

...so how come when there is alot of "stuff" in that adjacent
cell, the cell with the one-pixel gif strrrrretches???

You're spanning two rows with the cell with a lot of stuff.
However, the two cells in column one will each have to have half
the height of the single cell in column 2; otherwise the table
wouldn't quite be a table.
 
N

Nik Coughin

Carl said:
Thank you! You are the first one to solve it! The other fellow
thought I was talking about HTML tables! Can you believe that!?!

Are they the ones that slide out at either end to make a bigger table?
 
M

Marc Nadeau

Nik Coughin a schtroumphé:
Thank you! You are the first one to solve it! The other
fellow

Are they the ones that slide out at either end to make a
bigger table?


If you have a browser that supports the slide attribute for
tables.
 
C

Carl Wan

Marc said:
Nik Coughin a schtroumphé:


If you have a browser that supports the slide attribute for
tables.

check back, "periodically," on that one...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top