html - problem with word wrapping

Posted by pakita883 on Stack Overflow See other posts from Stack Overflow or by pakita883
Published on 2010-06-03T08:45:12Z Indexed on 2010/06/03 8:54 UTC
Read the original article Hit count: 227

Filed under:
|
|

Hello! I have some text in div, and I want it to wrap to fit document width (without any scrolls!). I don't want to have word-break, like div {word-wrap: break-word;}

For example (this is what I want to get):

hello world! today is a 
good day.

But not:

hello world! today is a  good day.

or:

hello world! today is a go
od day.

© Stack Overflow or respective owner

Related posts about html

Related posts about css