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

CSS text indent Property

CSS text-indent Property

 

 

The text-indent property is used to specify the indentation of the first line in a text block. If the value is a negative value then the first line will be indented to the left if the value is negative.

 

Default Value:-

 

Its default value is 0.

 

Syntax:-

 

Its syntax is:- text-indent: length | initial | inherit;

 

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 Properties

All Sections related to CSS