CSS text-indent property
Description
CSS text-indent property applies indentation to the first line of inline content.
Syntax
text-indent : length | percentage
Property values
lengthDefault
-
length value applies indentation as an absolute value. The following demo adds 0px indentation.
text-indent: 0px;
length
-
10px value moves the first line of inline content to the right side by 10px absolute value.
text-indent: 10px;
percentage
-
20% value moves the first line of inline content to the right side by 20% width of the container.
text-indent: 20%;
Applicable to
It applies to block containers.
From web4college, the free CSS digger
#CSS digger
Was this article helpful?
We are learning text-indent property.
▾