Red line of text in CSS
Now let's figure out how to make a red line, that is, an indentation of the first line of text. The text-indent
property is intended for this. Let's use it to make a red line for paragraphs:
<p>
long text...
</p>
<p>
long text...
</p>
<p>
long text...
</p>
p {
text-indent: 50px;
text-align: justify;
width: 400px;
}
:
Try this feature out for yourself.