Indent the text of a paragraph with CSS

The text-indent property is used to indent the text of a paragraph. Possible values are % or a number specifying indent space.

Example

You can try to run the following code to implement a text-indent property in CSS:

   
   
   
      

         This text will have first line indented by 2cm and this line will remain at          its actual position this is done by CSS text-indent property.      

   
Updated on: 2020-01-31T06:02:11+05:30

309 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements