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
p{
text-indent: 10px;
}
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:
Values | Description |
---|---|
pixel | Values with “px” e.g. 3px, 4px |
percentage | Values with “%” e.g. 1%, 6% |