Combining fixed and variable sizes in one table?
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 posted this at 18:18 — 3rd January 2001.
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 posted this at 18:57 — 3rd January 2001.
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 posted this at 19:07 — 3rd January 2001.
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.
Megan
Connect with us on Facebook!
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.