CSS Text Indent
The text-indent
property in CSS specifies the indentation of the first line of a block of text. It allows you to control the space between the left (or right, for right-to-left text) margin and the start of the text content.
Basic Usage of the text-indent
Property
The text-indent
property takes various length and percentage values:
text-indent: length;
: Sets the indentation using specific length values like pixels or em.text-indent: percentage;
: Specifies the indentation in percentage relative to the width of the containing block.