newbie TABLE puzzle!!!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

•  Subject
• Author
• Posted on
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

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

FIRST TABLE:

<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:

<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!

Re: newbie TABLE puzzle!!!

Because the row and column width try to be uniform, that is the
concept of a table.

Hm, javascript comments in an HTML example? :-)

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.

--
Rob - http://rock13.com /
Web Stuff: http://rock13.com/webhelp /

Re: newbie TABLE puzzle!!!

Carl Wan wrote:

Dear Newbie:

Here is the solution to the TABLE puzzle that you requested:

http://homepages.ihug.co.nz/~nrkn/table%20puzzle.jpg

HTH,

Nik Coughlin

Re: newbie TABLE puzzle!!!

Nik Coughin wrote:

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

Re: newbie TABLE puzzle!!!

Carl Wan wrote:

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

Re: newbie TABLE puzzle!!!

Nik Coughin a schtroumphé:

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

--
mv sco /dev/null
Marc Nadeau #  La Pagerie  /* http://www.pagerie.com */