CSS Text Property


PropertyDescription
text-colorThe color property is used to set the color of a text.
text-alignThe text-align property is used to set the horizontal alignment of a text.
directionThe direction property is used to set the text direction.
letter-spacingThe letter-spacing property is used to add or subtract space between the letters that make up a word.
word-spacingThe word-spacing property is used to add or subtract space between the words of a sentence.
text-indentThe text-indent property is used to indent the text of a paragraph.
text-decorationThe text-decoration property is used to underline, overline, and strikethrough text.
text-transformThe text-transform property is used to capitalize text or convert text to uppercase or lowercase letters.
white-spaceThe white-space property is used to control the flow and formatting of text.
text-shadowThe text-shadow property is used to set the text shadow around a text.
Text-Pseudo-Class
  • First-letter Pseudo-class
  • The first-letter pseduo-class to specify a rule just for the first letter of an element.

  • First-line Pseudo-class
  • The first-line pseudo-class to render the first line of any paragraph differently from the rest of the paragraph.

line-heightThe line-height property specifies the line height.
unicode-bidiThe unicode-bidi property is used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document.
vertical-alignThe vertical-align property sets the vertical alignment of an element.

Share this article on