CSS: Word-Wrap

Es gibt zwar nur einige wenige Szenarien wo man word-wrap:break-word einsetzen will, aber dann ist das sehr praktisch - und funktioniert im IE ;-) .

Basically, it tells the text content targeted by the selector to break any long words that might potentially go outside the layout due to space limitations and lack of breaking spaces.

For example, you might have a width of 200px for a particular element, and you might have a link inside that element that contains a really long word that stretches past the element’s width (that is, it’s longer than 200px, with no spaces). If you have the word-wrap property set to the value “break-word”, then the word will naturally break to the next line, without breaking the layout.

via impressiv webs

Possibly related posts (automatically generated)