Jump to content

Specify the Maximum Width for a Column


Shanester

Recommended Posts

Try using the max-width on the first table cell of that column instead. Also, max-width doesn't work in IE 6 or below, so if you are trying it in IE 6, IE 5.5, IE 4 and IE 3 then nothing will happen :)

Link to comment
Share on other sites

I tried adding max-width to the first cell in the column, like:

<th style='max-width:100px'>Referrer</th>

But it isn't working in ie7 or Firefox 3.I'm almost always able to work around deficiencies in HTML and CSS, but this time I can’t figure out any way of specifying the maximum width of a column.Any other ideas?Thanks,Shane.

Link to comment
Share on other sites

OFFTOPIC: (although is ontopic based on the answer above)The semicolon it's only needed to separate lines in your declaration, so if there's only one property, or the last property of the list, then there's no need to put the semicolon.Shanester's code is correct, but I think jlhaslip's suggestion is the solution.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...