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

Chapter 7. Space Inside Boxes > Justifying Text

Justifying Text

Justified text is text that is spaced out from the left to right margin so that the texts fills the space between the margins. For the value justify, CSS does not specify how text is stretched, or spaced out, as part of distributing it between the margins. Some implementations stretch only the spaces between the words. Others may stretch the spaces between the letters as well. Yet others may occasionally shrink spaces instead (and thus put more words on a line). Which method is used depends on the browser and on the language in which the text is displayed.

HTML has a special entity for manually hyphenating words: ­ (“soft hyphen”). When you insert it in the middle of a word, like this: hy­phen­ate, a browser may break the word at the position of the entity. If the word is not broken, the entity remains invisible. Unfortunately, at the time of writing (end of 2004), there are still browsers that insert a hyphen for every ­ without breaking the word.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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