Jump to content

Wrapping in <td>


EchoFool

Recommended Posts

Hey,

 

Quick question, if i echo a stirng (Which his really long with no spaces)

 

Example:

@@@@@@@@@@@@@@@ x 1000

 

Then what occurs on my script is the div gets pushed off the page, instead of cutting the word up and splitting it to a new line.

 

What can i do to prevent it exceeding my TD width of "75%" ?

Link to comment
https://forums.phpfreaks.com/topic/181073-wrapping-in/
Share on other sites

Lol that was just an example, but im thinking in relation to spam....lets change the example...

 

Say the output div was only 100 px wide, a setence may just push the div a bit...what i want it to do is :

 

Text text text text te-

xt text text text text

 

Notice one word is te-xt  (divided) so it wraps once it reachs end of the div instead of the div strecthing..i also notice it causes other <TD>'s to go smaller if another goes bigger due to its content, why cant they just stay fixed :(

Link to comment
https://forums.phpfreaks.com/topic/181073-wrapping-in/#findComment-956383
Share on other sites

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.