Forum Moderators: not2easy

Message Too Old, No Replies

Forcing a Break or Wrap for long words in spaces with defined widths

         

Jeremy_H

8:32 pm on May 9, 2006 (gmt 0)

10+ Year Member



I have a paragraph inside a divider. This paragraph will contains various outputs from a script.

<div><p>$script_output</p></div>

The divider has a width equal to 500px.

The problem is, sometimes the $script_output contains a really long string with no spaces. This stretches out the paragraph and divider.

Is there a way to force a break or wrap to the paragraph, keeping the integrity of the specified width?

Thanks

Telos

10:05 pm on May 9, 2006 (gmt 0)

10+ Year Member



You could have the script output a <br /> after a certain number of characters.