Font and text
The following cascading style sheet properties apply to font styles and text rendering.
Properties
-
direction Sets the reading order of the object.
-
font Sets a combination of separate font properties of the object.
-
font-family Sets the name of the font used for text in the object.
-
font-size Sets a value that indicates the font size used for text in the object.
-
font-style Sets the font style of the object as italic, normal, or oblique.
-
font-variant Sets whether the text of the object is in small uppercase letters.
-
font-weight Sets the weight of the font of the object.
-
letter-spacing Sets the amount of additional space between letters in the object.
-
line-height Sets the distance between lines in the object.
-
text-align Sets whether the text in the object is left-aligned, right-aligned, centered, or justified.
-
text-decoration Sets a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.
-
text-indent Sets the indentation of the first line of text in the object.
-
text-transform Sets the rendering of the text in the object.
-
unicode-bidi Sets the level of embedding with respect to the bidirectional (right-to-left) algorithm.
-
vertical-align Sets the vertical alignment of the object.
-
white-space Sets a value that indicates whether lines are automatically broken inside the object.
-
word-spacing Sets the amount of additional space between words in the object.