CSS text-indent property
Attribute definitions and instructions
Text-indent attribute specifies the text block indent the first line of text.
Note: negative values are allowed.If the value is negative, the first line left indent.
Defaults: | 0 |
---|---|
inherit: | yes |
version: | CSS1 |
JavaScript syntax: | object .style.textIndent = "50px" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
text-indent | 1.0 | 3.0 | 1.0 | 1.0 | 3.5 |
Property Value
value | description |
---|---|
length | It defines a fixed indentation. Default: 0. |
% | Percentages are based on the width of the parent element defined indentation. |
inherit | Predetermined value of text-indent should inherit the property from the parent element. |
related articles
CSS tutorial: CSS text