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

Discussion in 'HTML' started by Pat Traynor, Sep 23, 2003.

  1. Pat Traynor

    Pat Traynor Guest

    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.
     
    Pat Traynor, Sep 23, 2003
    #1
    1. Advertising

  2. Pat Traynor

    Adrienne Guest

    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
     
    Adrienne, Sep 23, 2003
    #2
    1. Advertising

  3. Pat Traynor

    steve Guest

    > 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>
     
    steve, Sep 23, 2003
    #3
  4. Pat Traynor

    Sid Ismail Guest

    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
     
    Sid Ismail, Sep 24, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    10
    Views:
    1,118
    Chris
    Mar 1, 2004
  2. Phillip Roncoroni
    Replies:
    14
    Views:
    1,143
    Toby A Inkster
    Apr 5, 2004
  3. dunnil
    Replies:
    1
    Views:
    750
    Neredbojias
    Feb 5, 2006
  4. chris f
    Replies:
    1
    Views:
    378
    Munna
    Jun 14, 2008
  5. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    814
Loading...

Share This Page