Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 15, 2005, 10:49 pm
rate this thread
I have a table containing three rows. The table takes up the entire screen.
The top row should only be big enough to contain a nested table and the
contents of that table; the same goes for the bottom row. (These two rows'
heights will effectively remained fixed.) However, is it possible to
the middle row to take up the rest of the remaining height? (In here I'll
another nested table, where the middle row of this inner-table will
take up the remaining height, and the top and bottom rows of this inner
table will remain fixed in much the same way as the outter table's top and
bottom row.) I don't want the page to scroll at all, therefore this
middle row will contain a div with "scroll: auto;" so that the content may
Unfortunately, frames and iframes and whatnot are out of the question.
I've tried like hell to get the above working, but I always end up with the
having to vertically scroll to see the lower contents of the page.
I think I've just melted my head re-reading that. What time is it?
Re: Can center row in three row table take up remaining space?
Then you probably shouldn't be using a table since you don't have
Nested tables are a fairly sure symptom of using tables for layout, and
in an unnecessarily complicated and risky manner at that.
You can try setting the table's height in CSS, or using nonstandard
height="100%" attribute in the <table> tag (to nonstandard that even
IE spits at it in "standards" mode).
Please save us from the dirty details. Or at least post the URL - maybe
someone with weird mind is willing to help you with the trickery.
Maybe you should then include a note saying "This page optimized for
[insert some usual nonsense babble about wowsers and resolutions]
and the creator's fixed ideas." Scrolling inside an area on a page is
_worse_ than scrolling normally.
You would probably make things just _worse_ by trying to emulate frames
or iframes with your own trickery.
Yucca, http://www.cs.tut.fi/~jkorpela /
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html