Copyright © tutorialspoint.com
The text-indent property defines an indentation distance for the first line of text in a block-level element.
All the block-level elements.
object.style.textIndent="20px"; |
Following is the example which demonstrates how to indent the first line of a paragraph:
<p style="text-indent:1cm;"> This text will have first line indented by 1cm and this line will remain at its actual position this is done by CSS text-indent property. </p> |
This will produce following result:
This text will have first line indented by 1cm |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com