Saturday, 7 September 2013

how to wrap text taken from database without splitting up words?

how to wrap text taken from database without splitting up words?

Okay, this is one that's stumped me a while now..
I have a database of stories. I want to display the content of a chapter,
inside of a div. My problem is getting the text to wrap without splitting
words, which cuts down on readability. For example, the word 'birthday' is
at the edge of my div, and it will get wrapped like this:
birthd
ay.
How do I fix this? Probably really simple, I'm just over thinking it..

No comments:

Post a Comment