- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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:
<html> <head> </head> <body> <p style = "text-indent:2cm;"> 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. </p> </body> </html>
- Related Articles
- Indent Text with CSS text-indent Property
- Indent the first line of a paragraph in CSS
- Align the text of a paragraph with CSS
- Animate CSS text-indent property
- Usage of text-indent property in CSS
- Python program to wrap a text into paragraph with width w
- Set the direction of a text with CSS
- Align the text of a document with CSS
- Set the text shadow around a text with CSS
- Set the height of a line of text with CSS
- Increase the font size of a paragraph with Bootstrap
- How to set the color of a text with CSS
- Underline text with CSS
- Strikethrough text with CSS
- Capitalize text with CSS

Advertisements