Indenting the Text


Indenting the Text
73
1/1






The text-indent Property
The text-indent property specifies how much horizontal space should be left before the beginning of the first line of the text. Property values are length (px, pt, cm, em, etc.), %, and inherit.
The HTML:<p>This is an example of
<strong>text-indent </strong> property.
First line of our text is indented to the right in 60px.
Besides pixels you can also use other measurement units,
like pt, cm, em, etc. </p>
The CSS:
Result:
Negative values are allowed. The first line will be indented to the left if the value is negative.
Comments
Post a Comment