Open this example in the interactive library
Source code
<style>
.demo {
text-indent: 2rem;
max-width: 26ch;
}
</style>
<p class="demo">
First-line indent works even when the rest of the paragraph wraps onto another
line.
</p>
Indent the first line with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
text-indent: 2rem;
max-width: 26ch;
}
</style>
<p class="demo">
First-line indent works even when the rest of the paragraph wraps onto another
line.
</p>