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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.