Jump to content

[SOLVED] Td tag max lenght


GroundVibes

Recommended Posts

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

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]

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.