Alex Gordon
Alex Gordon

Reputation: 60912

wordwrap problems on a webpage

how do i make sure that on my forum when people submit posts, i do not have this problem of a HUGE unwrapped string as seen on this posting:

best practice for developing webpage for mobile phone

Upvotes: 0

Views: 79

Answers (2)

Kenneth Reitz
Kenneth Reitz

Reputation: 8866

{
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Upvotes: 1

Robert Harvey
Robert Harvey

Reputation: 180958

On StackOverflow you can do it manually like this:

Here is my link

So potentially you could write a routine that just substitute Link Here as the description, instead of the URL.

Upvotes: 0

Related Questions