Shanester Posted August 17, 2008 Share Posted August 17, 2008 How do I specify the maximum width for a column? I thought I could try: <col style='max-width:200px' /> but this doesn't work in any of the four browsers that I have.Thanks,Shane. Link to comment Share on other sites More sharing options...
Synook Posted August 17, 2008 Share Posted August 17, 2008 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 More sharing options...
Shanester Posted August 17, 2008 Author Share Posted August 17, 2008 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 More sharing options...
jlhaslip Posted August 17, 2008 Share Posted August 17, 2008 Try it on the column's TD cell. Link to comment Share on other sites More sharing options...
Kingy Posted August 18, 2008 Share Posted August 18, 2008 Also see if putting a semi colon at the end helps, sometimes browsers can be pretty anal. >_>100px; Link to comment Share on other sites More sharing options...
rzea Posted August 18, 2008 Share Posted August 18, 2008 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 More sharing options...
Guest FirefoxRocks Posted August 22, 2008 Share Posted August 22, 2008 OFFTOPIC:Who uses IE 3 these days? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.