Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > table in table -> 100% height does not work

Reply
Thread Tools

table in table -> 100% height does not work

 
 
Paul Schmidinger
Guest
Posts: n/a
 
      08-10-2004
Hello,

I have a complex table (which I have simplified for this post to allow
better focus on the problem ). In one cell, I want to show 2 images. One at
the top of the cell, one at the bottom. I do not know the height of the
cell - the height depends on the amount of content in the other cells in the
same row and on the width of the beowser-window. What I tried is creating
another table in the cell, with 2 rows (with 1 cell each), aligning the
images at the top and bottom. But the browser (IE 6) ignores the
height="100%" -- which is strange, for usually it accepts this attribute.

Here is the simplified example:
http://www.eigelb.at/tables.html

If I specify the height of the table absolute (in Pixels) and without "%",
it works fine. But I can not do that for I do not know the height of the
cell and therefore the height of the table.

Any help would be appreciated -- I don't care if there is a subtable in the
cell or not, I just want to align 2 images in a cell - one on top, one at
bottom, no matter what height the cell has. I would to prefer not using
JavaScript (e. g. reading the height of the cell, then setting the height of
the table using JavaScript).

Thanks,
Paul Schmidinger

-- www.eigelb.at


 
Reply With Quote
 
 
 
 
Claus Madsen
Guest
Posts: n/a
 
      08-10-2004
Paul Schmidinger wrote:

> Any help would be appreciated -- I don't care if there is a subtable
> in the cell or not, I just want to align 2 images in a cell - one on
> top, one at bottom, no matter what height the cell has. I would to
> prefer not using JavaScript (e. g. reading the height of the cell,
> then setting the height of the table using JavaScript).
>


Maybe this will do the trick:

http://clausmadsen.dk/uk/test/

--
Claus Madsen - http://clausmadsen.dk


 
Reply With Quote
 
 
 
 
Paul Schmidinger
Guest
Posts: n/a
 
      08-10-2004
> > Any help would be appreciated -- I don't care if there is a subtable
> > in the cell or not, I just want to align 2 images in a cell - one on
> > top, one at bottom, no matter what height the cell has. I would to
> > prefer not using JavaScript (e. g. reading the height of the cell,
> > then setting the height of the table using JavaScript).
> >

>
> Maybe this will do the trick:
>
> http://clausmadsen.dk/uk/test/


It does, thank you! I experimented with rowspan and colspan before, but I
used too many of them so the browser would not use my width- and
height-attributes. But using only some simple rowspans should do the trick!

Paul Schmidinger
-- www.eigelb.at


 
Reply With Quote
 
roma1123 roma1123 is offline
Junior Member
Join Date: Mar 2011
Posts: 1
 
      03-24-2011
Hi,

Here is an article explaining how to correctly setting the height of the elements on page 100%:
http://extremedev.blogspot.com/2011/...-not-work.html
 
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
Tetration (print 100^100^100^100^100^100^100^100^100^100^100^100^100^100) jononanon@googlemail.com C Programming 5 04-25-2012 08:49 PM
getting exact height of a panel with a height="100%" samer ASP .Net 3 09-28-2009 05:21 PM
Why can't I change height with <col width="50" height="100">? Bernd Meier HTML 6 01-14-2008 07:25 AM
Nested Div. Height:100%. Does more than 100% celineusa@gmail.com HTML 8 12-09-2005 08:57 AM
100% TABLE + 100% ROW + 100% DIV..? fred Javascript 3 03-17-2005 04:25 AM



Advertisments