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? Link to comment https://forums.phpfreaks.com/topic/167722-column-sizes/ 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. Link to comment https://forums.phpfreaks.com/topic/167722-column-sizes/#findComment-884554 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? Link to comment https://forums.phpfreaks.com/topic/167722-column-sizes/#findComment-884615 Share on other sites More sharing options...
haku Posted July 28, 2009 Share Posted July 28, 2009 Try the code I already gave you. Link to comment https://forums.phpfreaks.com/topic/167722-column-sizes/#findComment-884675 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 Link to comment https://forums.phpfreaks.com/topic/167722-column-sizes/#findComment-884840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.