Text Indent
How to make a large blank space in html using css?
How to create the space / indent for the paragraph beginning?
Usage:
text-indent: 1cm;
text-indent: 10px;
text-indent: 10pt;
text-indent: 10%;
This attribute can be used to indent the text. In simple word to move the text by some distance away from the border. It can also be termed as a big marginal space
It takes the following values.
1) cm : The indent can be set in centimeter as 1cm or 2cm etc ...
2) px : The indent can be set in pixels as 1px or 10px etc ...
3) pt : The indent can be set in points as 1pt or 10pt etc ...
Example1:
How to create the space / indent for the paragraph beginning?
Usage:
text-indent: 1cm;
text-indent: 10px;
text-indent: 10pt;
text-indent: 10%;
This attribute can be used to indent the text. In simple word to move the text by some distance away from the border. It can also be termed as a big marginal space
It takes the following values.
1) cm : The indent can be set in centimeter as 1cm or 2cm etc ...
2) px : The indent can be set in pixels as 1px or 10px etc ...
3) pt : The indent can be set in points as 1pt or 10pt etc ...
Example1:
<div style="text-indent: 1cm;">text indent</div> Result:
text indent
Emaple 2:
<div style="text-indent: 20px;">
text indent line 1<br>
text indent line 2
</div>
Result :
text indent line 1
text indent line 2
Example 3:
<div style="text-indent: 40pt;">text indent</div> Result:
text indent