CSS Text Indentation

CSS Text Indentation is used to set the indentation of the first line of text within a block of text. The text-indent property used to specify the indentation of the first line of a paragraph.

The size of the indentation can be specified using percentage (%), length values in pixels, cm etc.

Syntax:

text-indent:150px;

The following example will indent the first line of the paragraphs by 50 pixels.

Example :

<html>
<head>
    <title>Learn Css text Indentation tutorials</title>
</head>
<body>
  <p style="text-indent:50px;">Learn Css text transform tutorial to indent  first line of text by aryatechno</p>
</body>
</html>

Output :

                   Learn Css text transform tutorial to indent
first line of text by aryatechno

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

44268