GroundVibes Posted January 2, 2007 Share Posted January 2, 2007 Hi all!I have a table, and well I get input from a database some text that gets filled in it.What happens is that if the text is all grouped together without any spaces. The max width of my table which is 300px, goes out of bound and it pastes the entire text on the x asis and makes my screen gigantic.What I am asking is, if there is a way to keep my td tag at 300px without growing bigger to fit the text that was inserted in it? I think there is "Wrap" but for some odd reason it is not working!Anyway, if there is a technique, I would glady appreciate it! Thank you! Link to comment https://forums.phpfreaks.com/topic/32547-solved-td-tag-max-lenght/ Share on other sites More sharing options...
lszanto Posted January 2, 2007 Share Posted January 2, 2007 If this helps at all you could give the td tag an id for example <td id="text" > and in your style sheet put in the width and height in and at the bottom put overflow: auto; and it should make scrolly bars if the text is bigger than that width, you could also just do: [code]<td style=" width: 300px; height: 300px; overflow: auto; " >[/code] Link to comment https://forums.phpfreaks.com/topic/32547-solved-td-tag-max-lenght/#findComment-151322 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.