The text-indent attribute can define the indentation before the first line of text content of a text.
<length>
Length value, defaults to 0
<percentage>
Percentage relative to the text
width
Initial value | 0 |
Applies to | text |
Inherited | no |
Animatable | no |
When writing percentage, you need to specify the width of the text element, otherwise, it will not take effect