CSS Text
Text can be modified using css by applied different styles to it.
Lets get into the stles and properties used.
Text Color Properties
We use color and background-color to modify the text.
- color: Sets the color of the text.
- background-color: Defines the background color behind the text.
Text alignment Properties
We use text-align to modify the position of text.
It has four values todefine the position
It has four values todefine the position
- center: Sets the text position in center.
- left: Sets the text position in left(default).
- right: Sets the text position in right.
- justify: Gives equal width for each line to the text.
Text Decoration Properties
We use text-decoration to modify the decoration of text.
Adds decorations like underline, overline, line-through, and blink to text.
Adds decorations like underline, overline, line-through, and blink to text.
Text Transform, Spacing, and Indentation Properties
- text-transform: Converts the text to uppercase, lowercase, or capitalized.
- letter-spacing: Adjusts the spacing between characters.
- word-spacing: Sets the spacing between words.
- text-indent: Indents the first line of a text block.
Text Direction Properties
We use direction to modify the direction of the text to show
- ltl: Sets the direction from left to right (default).
- rtl: Sets the direction from right to left (default).
Quick Recap
Topics Covered
Practice With Examples in Compilers
The Concepts and codes you leart practice in Compilers till you are confident of doing on your own. A Various methods of examples, concepts, codes availble in our websites. Don't know where to start Down some code examples are given for this page topic use the code and compile or Try on own Now