Indenting the Text | Text Indentation
The text-indent Property
The text-indent property describes how much horizontal space should be left before the beginning of the first line of the text. Its values can be in px, em, rem, %, and many more.
Syntax:-
Its syntax is:-
< style >
element{
text-indent: length| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
length | Defines a fixed indentation in px, em, etc. |
% | Defines the indentation in % of the width of the parent element. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |
Code Explanation
All Tutorials related to CSS Basic
CSS Syntax
ID and CLASS Selectors
Descendant Selectors
Comments
Inheritance
Font Family
Font Size
Font Style
Font Weight
Font Variant
Color
Text Align
Vertical Text Align
Text Decoration
Text Indent
Text Shadow
Text Transform
Letter Spacing
Word Spacing
White Spacing