CSS
Indent

The command Indent the first line in every paragraph. Empty space before lines of text in a block is called indentation.

Basic Syntax

Indent Example

Below example will demonstrate the basic architecture of CSS Indent

<!doctype html>  
<html>
    <head>
        <title>...</title>
    </head>
  
    <body>
       <p style="text-indent: 10px;">You can learn programming languages from PHPDocs.</p>
    </body>
</html>

Units

The possible units can be used for these properties are as follows:

ValuesDescription
pixelValues with “px” e.g. 3px, 4px
percentageValues with “%” e.g. 1%, 6%