Positioning a table cell (not a css/div question)

P

Pat Traynor

Ok, picture this....

You've got a table with two columns. The left column has two cells, and
the right has only one, via "rowspan=2". Each of the left two cells
contains a 100x100 pixel image, but the right cell contains a 500x500
pixel image.

I would *like* the top-left cell to constrain itself to the 100x100
image so that the image in the cell below butts up against it. But the
two cells on the left split the difference (250 px each), and the lower
image floats far below the top one.

Is there some attribute that I can give to the cell(s) or table that
will limit the size of the top cell?

I know this sounds like a strange thing to do, but trust me - I've got a
very good reason to do it this way.
 
A

Adrienne

Ok, picture this....

You've got a table with two columns. The left column has two cells, and
the right has only one, via "rowspan=2". Each of the left two cells
contains a 100x100 pixel image, but the right cell contains a 500x500
pixel image.

I would *like* the top-left cell to constrain itself to the 100x100
image so that the image in the cell below butts up against it. But the
two cells on the left split the difference (250 px each), and the lower
image floats far below the top one.

Is there some attribute that I can give to the cell(s) or table that
will limit the size of the top cell?

I know this sounds like a strange thing to do, but trust me - I've got a
very good reason to do it this way.

1. Do you have a URL?
2. Are you using tables for presentation, or for tabular data?
 
S

steve

Ok, picture this....
You've got a table with two columns. The left column has two cells, and
the right has only one, via "rowspan=2". Each of the left two cells
contains a 100x100 pixel image, but the right cell contains a 500x500
pixel image.

I would *like* the top-left cell to constrain itself to the 100x100
image so that the image in the cell below butts up against it. But the
two cells on the left split the difference (250 px each), and the lower
image floats far below the top one.

Is there some attribute that I can give to the cell(s) or table that
will limit the size of the top cell?

I know this sounds like a strange thing to do, but trust me - I've got a
very good reason to do it this way.

is it maybe what you need

<table cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="bottom"><img src="test.jpg" width="100"
height="100"></td>
<td rowspan="2"><img src="test.jpg" width="500" height="500"></td>
</tr>
<tr>
<td align="left" valign="top"><img src="test.jpg" width="100"
height="100"></td>
</tr>
</table>
 
S

Sid Ismail

: Ok, picture this....
:
: You've got a table with two columns. The left column has two cells, and
: the right has only one, via "rowspan=2". Each of the left two cells
: contains a 100x100 pixel image, but the right cell contains a 500x500
: pixel image.
:
: I would *like* the top-left cell to constrain itself to the 100x100
: image so that the image in the cell below butts up against it. But the
: two cells on the left split the difference (250 px each), and the lower
: image floats far below the top one.
:
: Is there some attribute that I can give to the cell(s) or table that
: will limit the size of the top cell?


Add a third cell on the LHS (making rowspan=3 on the right) and put an image
in

<TD><img src="filler.gif" width=1 height=300 alt=""></TD>
and this is a transparent GIF filler.

Sid
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top