HTML and CSS Reference
This property can be set to allow line breaks within words when content exceeds the limits
of its containing element.
word-wrap: break-word | normal
<p style="word-wrap: break-word; width: 30px;">
Words can break in this example even if they are veryveryverylong. Here is
another long one:Transcendentalism this might get split in two! </p>
• Under IE 8 this property is also known and should be set as -ms-word-wrap to
correctly identify it as an extension in a standards-compliant mode.
This Microsoft-proposed CSS property can be used to set text flow appropriate for European
alphabets or East Asian alphabets.
writing-mode: bt-lr | bt-rl | lr-bt | lr-tb | rl-tb | rl-bt | tb-rl | tb-lr
Values are bt (bottom to top), lr (left to right), rl (right to left), and tb (top to bottom) and
are combined in a variety of ways.
<p style="writing-mode: tb-rl;">
Top to bottom, right to left.
<p style="writing-mode: tb-lr;">
Top to bottom, left to right.