HTML and CSS Reference
Witness the power of my
Let's look at my hyphens.html example, which has the following properties
set on the paragraphs:
I've hidden the overflowing text and set text-overflow: ellipsis as with
previous examples. However, this time I've also set the text to be justified and set
automatic hyphens. This produces an effect like that shown in Figure 3.15 .
NOTE: In the future you'll be able to specify exactly which character the
browser uses for its automatic hyphens using the hyphenate-character
property; for example, hyphenate-character: “\2010”; . The values are
unicode references to glyphs.
HYPHENATION IN OLDER BROWSERS
To u s e a u it To m at i c hy p h e in at i To in i in in To in s u p p To r it i in g b ro ws e rs , yo u c a in b u i l d i it i in w i it h
library, which could result in some page bloat. Other disadvantages include the
fact that you must include a specific class on each element that you want justified.