Combining fixed and variable sizes in one table?

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Is it possible to combine both fixed and variable (percentage) widths in the same table?

I have a table with 2 columns ("left" and "right" if you will). I want the left column to be a fixed size but I want the right column to be variable so that it always extends to the right end of screen no matter what size resoltion a visitor is using.

Any tips would be appreciated.

Thanks!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

More or less like this ..


this is a fixed width column

blah blah blah

spacer.gif should be a transparent one pixel by one pixel image.

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

But will that make the second column (the "blah blah blah" column) always grow and shrink to fit the max size of the screen?

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

It should! Just give it a try.

Netscape has a funny way of handling table width (if anyone has any rationalization for this I'd really love to hear it!), so that's why you have to put the spacer (transparent) gif in there - otherwise netscape will sometimes shrink it smaller than 200. Similarily, your expandable cell (on the right) will have to have some content that expands dynamically with the width (like a paragraph of text for example that flows over more than one line) - otherwise netscape will sometimes expand the right column wider than 200 pixels. I hope that makes sense.

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.