Browse documentation

Reference / Typography

Text alignment

Align inline content within a block, including labels and amounts in a ledger.

Working example

Use start and end when a layout needs to adapt to left-to-right and right-to-left writing.

HTML
<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

ClassCSS declarations
text-lefttext-align: left;
text-centertext-align: center;
text-righttext-align: right;
text-justifytext-align: justify;
text-starttext-align: start;
text-endtext-align: end;
View full generated CSS
Compiled 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;
}