• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Text Property Extensions > text-justify Property

11.6. text-justify Property

Often, when you use a justification value on the text contained within a Web page, you might wish to have greater control over how exactly a line of text is to be justified across the length of a paragraph. For the most part a Web browser will either squeeze the space between letters or expand them slightly, but the adjustments made do not always look good. The text-justify property provides much greater control over the type of justification use.

The text-justify property has a total of eight separate values: auto, distribute, distribute-all-lines, inter-cluster, inter-ideograph, inter-word, kashida and newspaper. The auto value is the default, allowing the browser to determine how to best justify a line of text. The distribute value is intended for use with Asian character sets, and justifies every line of text in a vertical paragraph save for the last line. The distribute-all-lines value is also intended for Asian character sets, and works the same way as distribute, but it applies the justification to all lines of text in a block of text, including the final line. Both inter-cluster and inter-ideograph are similarly intended for Asian character sets; the first justifies lines of text containing no inter-word spacing, the second increases or decreases the width between characters or words as necessary. The inter-word value increases or decreases the spacing between individual words, though this is applied to the final line of text in the paragraph. The kashida value is specific to Arabic characters, and it justifies the text by exaggerating certain characters at specific points. Finally, the newspaper value increases or decreases the spaces between words, and works the same way as distribute — which similarly does not justify the final line of text — but it is intended for Western text. This property is meant to be used in conjunction with the text-align property set to justify.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint