News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Word wrap in posts?

Started by itskadenhere, May 05, 2016, 04:21:41 PM

Previous topic - Next topic

itskadenhere

Hey guys. Today I'm having a little dilemma. The problem is that posts don't automatically wordwrap to fit the screen's size.

Here's an example: hxxp:www.platformk.ca/index.php?topic=4.0 [nonactive]
In the post box thing you can see when you type enough it automatically wraps to to the next line, but it doesn't actually show that in the post itself.
I'm running SMF 2.0.11. Thanks!

Sir Osis of Liver

It doesn't wrap because it's all one word, there's no place to put a linebreak.  It wraps in the post editor probably because it's a textarea with a specified column width.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

qc

You can fix that with CSS by forcing the text to wrap. Using word-wrap: break-word; on the post area, you allow the browser to break long 'unbreakable' words.
Playing quizduell? Having quizduell questions? Our german quizduell forum quizcommunity.de is looking for quiz freaks to come and play quizduell with us :)

Advertisement: