smerny Posted July 28, 2009 Share Posted July 28, 2009 I have a table where the columns are: From - Subject - Views - Time and I would like it so the from, views, and time columns automatically adjusts to fit the largest text in each column... no extra space and no word wrapping... and the subject column takes on whatever space is left over (so there may be a lot of extra space, or the text may get cut (not word wrapped)) how can i do this? Quote Link to comment Share on other sites More sharing options...
haku Posted July 28, 2009 Share Posted July 28, 2009 Set: white-space:pre On the cells you want to have no wordwrap. Quote Link to comment Share on other sites More sharing options...
smerny Posted July 28, 2009 Author Share Posted July 28, 2009 and as for the size aspect i was looking for? Quote Link to comment Share on other sites More sharing options...
haku Posted July 28, 2009 Share Posted July 28, 2009 Try the code I already gave you. Quote Link to comment Share on other sites More sharing options...
smerny Posted July 28, 2009 Author Share Posted July 28, 2009 it doesn't make all columns as skinny as possible besides the subject column Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.