• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to specify a variable width column in an HTML page?

 
Mike London
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In using a 2-column layout, how do I specify/style a variable width for the main (right-side) content column?

I also need a fixed length for the left div.

Thanks in advance

Mike
 
Tina Ma
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly did you mean by a variable width of the column?
If you are trying to configure the same column with different widths under two separate conditions, then you can have two separate css styles and use the conditional style setting for the table element's style in the HTML.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm assuming by variable you mean it resizes as the window resizes? Going to take a shot and say have a container with width set to percentage and have the left div inside set to an absolute value (leaving the right to adjust dynamically). Is that similar to what you're looking for?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic