PDA

View Full Version : I got a table question.


Nex
05.18.03, 06:05 PM
sorry ifs not the right forum but how can i make a table's height autostretch? the width is fixed? thanks.

Grandmaster
05.18.03, 06:15 PM
height="100%"

just add that in beside the table width.

fever
05.18.03, 06:30 PM
Usually you don't have to put a height in the table tag. It'll automaticly grow as more content is put inside. But it's usually good to put in the table data tag valign="top" so it doesn't get centered vertically.

Nex
05.18.03, 09:13 PM
oh yeah i know it stretches as you put content in it...ok this is what i wanna do->
http://portfolio.iu.edu/otseren/page.gif

fever
05.18.03, 09:55 PM
So the pink box is a table all by itself?
Then make teh main table's width 100% but put height's on all the table data cells above it. Then leave the last one empty or put height="*". Then for the pink table put height="100%". I think that's what you mean. I hope.

or if it's just one big table. Put the height at 100% then put the correct heights you want for the top td cells then leave the pink one empty.

Nex
05.19.03, 10:50 AM
ok thanks a bunch that was it.

fever
05.19.03, 11:09 AM
What one? first of second example?

And you're welcome.