0

I would like to have a table with two columns.

I know how to set the width of a column as percentage of the table width or by pixel count.

I would like the left column to have the maximum width, while I need the right column to be 20% of the width of the table, but no more than 150px.

The thing is that the table width is dependent of client screen resolution, but the right column should never grow "too much".

How do I do that?

Different111222
  • 1,523
  • 3
  • 20
  • 28
  • See http://stackoverflow.com/questions/4636269/table-td-width-under-control – Seth Flowers Apr 24 '12 at 20:33
  • Thanks, but this is not it. I need a relative width with a maximum boundary. I'm families with max-width, but this doesn't help, because when user width along with max-width, the max-width has no affect. – Different111222 Apr 25 '12 at 13:02

1 Answers1

0

Look into css properties min-width and max-width.

SouthShoreAK
  • 4,176
  • 2
  • 26
  • 48
  • I'm families with max-width, but this doesn't help, because when user width along with max-width, the max-width has no affect. Can you be more specific? – Different111222 Apr 25 '12 at 13:03