Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Positioning a table cell (not a css/div question)

Reply
Thread Tools

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

 
 
Pat Traynor
Guest
Posts: n/a
 
      09-23-2003
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.

 
Reply With Quote
 
 
 
 
Adrienne
Guest
Posts: n/a
 
      09-23-2003
Gazing into my crystal ball I observed Pat Traynor <> writing
in news::

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

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      09-23-2003
> 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>


 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      09-24-2003
On Tue, 23 Sep 2003 16:11:48 -0400, Pat Traynor <> wrote:

: 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning a popup relative to a table cell chris f ASP .Net 1 06-14-2008 08:28 AM
form input text in table; how to fill table cell space sdf HTML 3 12-06-2007 03:29 PM
positioning data added to a CalendarControl day cell =?Utf-8?B?RGFiYmxlcg==?= ASP .Net 0 07-29-2006 04:34 AM
Table in a cell of another table Mark Goldin ASP .Net 2 08-19-2004 10:42 AM
How do I have a table cell fetch another page to display within the cell? Phillip Roncoroni HTML 14 04-05-2004 05:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57