Browse documentation
Reference / Typography
Text alignment
Align inline content within a block, including labels and amounts in a ledger.
Working example
Edition print
$48.00
Use start and end when a layout needs to adapt to left-to-right and right-to-left writing.
<div class="grid grid-cols-2 border-b p-2">
<span class="text-start">Edition print</span>
<span class="text-end tabular-nums">$48.00</span>
</div>Class reference
| Class | CSS declarations |
|---|---|
text-left | text-align: left; |
text-center | text-align: center; |
text-right | text-align: right; |
text-justify | text-align: justify; |
text-start | text-align: start; |
text-end | text-align: end; |
View full generated CSS
.text-center {
text-align: center;
}
.text-end {
text-align: end;
}
.text-justify {
text-align: justify;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-start {
text-align: start;
}