CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

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

All Sections related to CSS