Typography - Getting The Hang Of Typography

(lu) #1

Word Wrap


One property that is already well used is word-wrap. It supports one of
two values: normal and break-word. If you set word-wrap to break-
word and a word is so long that it would overflow the container, it is
broken at a random point so that it wraps within the container.


The International Gorilla Conservation Programme Web site uses word-wrap for
its commenters̓ names.


In theory, word-wrap: break-word should only be allowed when
text-wrap is set to either normal or suppress (which suppresses line
breaking). But in practice and for now, it works even when text-wrap is
set to something else.


Bear in mind that according to the specification, the break-strict value
for the word-break property is at risk of being dropped.

Free download pdf