
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
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>
- Related Articles
- Indent the text of a paragraph with CSS
- Align the text of a document with CSS
- Align the last line of the text with CSS
- Center image using text-align center with CSS?
- CSS text-align-last property
- How to change the cases of text in paragraph using CSS?
- Usage of text-align property in CSS
- How to Justify Text using text-align & text-justify CSS Properties?
- Align text and select boxes to the same width with HTML and CSS
- Indent the first line of a paragraph in CSS
- Align flex lines with CSS
- Python program to wrap a text into paragraph with width w
- Set the direction of a text with CSS
- Set the text shadow around a text with CSS
- Align flex items at the center of the container with CSS

Advertisements