CSS text overflows ooh man what a mess

Deeptechtons picture Deeptechtons · Feb 16, 2012 · Viewed 7.9k times · Source

I compiled this jsFiddle demo so that you can see what i am going throw. Using the Twitter Bootstrap 2 i thought everything was fine and simple things were taken care until i hit with this. I don't understand if the markup is not right or the library doesn't handle this but the text when long just overflows out of screen/container

JsFiddle

http://jsfiddle.net/kSCa3/2/

Answer

Ketan Modi picture Ketan Modi · Feb 16, 2012

Try this:

div {
  word-break: break-all;
  word-wrap: break-word;
}​