This chapter covers the following properties:
| p { text-indent: 50px; } |
The letter-spacing property is employed to define the spacing between characters in a text.
The subsequent example illustrates how to adjust the spacing between characters, either increasing or decreasing it.
Example
|
h1 { |
The line-height property determines the spacing between lines of text.
Example
| p.small { line-height: 0.8; } p.big { line-height: 1.8; } |
The word-spacing property is utilized to define the space between words in a text.
The following example illustrates how to adjust the spacing between words, either increasing or decreasing it.
Example
| p.one { word-spacing: 10px; } p.two { word-spacing: -2px; } |
The white-space property dictates the handling of white space within an element.
This example illustrates how to deactivate text wrapping within an element.
Example
| p { white-space: nowrap; } |
|
Property |
Description |
|
letter-spacing |
Defines the spacing between characters in text. |
|
line-height |
Defines the height of lines in text. |
|
text-indent |
Defines the indentation of the first line in a text block. |
|
white-space |
Determines how to manage white space within an element. |
|
word-spacing |
Sets the spacing between words in text. |