![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Align the text of a paragraph with CSS
To align the text of a paragraph, use the text-indent property.
Example
Possible values are % or a number specifying indent space. You can try to run the following code to implement a text-index property with 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>
Advertisements