CSS text indent

CSS text indent is used to define the indentation of paragraphs.

The indentation given to the content gives margin to the first line of content from the start.


Syntax

Output

This is indented paragarph.

This is not an indented paragraph.


CSS text indent values list

Sr. No.valueDescription
1lengthUsed to give the indentation in px, cm, em etc. The value for this for example can be 10px.
2percentageUsed to give the indentation in percentage. The value for this for example can be 20%.
3initialUsed to define as the property initial value.
4inheritUsed to define the computed value of property on the elements parent.
5unsetUsed to define the property either acts as inherit or initial, depending on the property if it is inherited or not.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.