Cell/row height + rowspan

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Hi,

View page here

On the page I have a table with one (main) cell which has a rowspan of 3. The original height of the three rows is not greater that the height of the main cell, so all three rows have increased heights to make up for the extra height.

Is there any way to have only one of the rows adjust, rather than all three? That is, to have the first two rows remain fixed at minimum possible height, and have only the third row flex.

Thanks. Smiling

PS: ignore the content -- just filler.

dk01's picture

He has: 516 posts

Joined: Mar 2002

Offhand I would say to set the heights for the first two 's and not to set it for the third but I am not sure how this would work. You page is neatly organized but it makes me nervous to see pixel and percent mesurements used together in tables like that. If you could change the width from 100% to some pixel measurement then it might be easier to get your tables to line up correctly.
-dk

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Thanks for replying dk01. Smiling

I've already tried doing... well, lots of things, really, involving the height property of tr's and td's. Even tried using css heights. Nothing seems to create a fixed/flex height. Sad

The widths are pretty much organised. I have no problem there (and haven't before --with the mixed measurements). Smiling
About the widths: I need to have the main table span the whole width of the screen but to have the nav remain at one width, as the rounded corner images in the navbar are of fixed width. Wink
The vertical gaps between the cells are only caused by the border taking up space.

Upon reviewing my earlier post it seems I was a little unclear.
If anyone is unsure what I'm trying to achieve, then view the page in Opera 6. Opera renders the page as I want it, but IE6, NS6 and NS4.7 don't.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

yes -- instead of using cells, used nested tables. valign the outer two cells in the holding table to the top, then they will stay there no matter what else you do with the middle cell.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Thanks Suzanne. Smiling

I'll try it and post here if I have any further problems. Wink

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.