Skip to content

text-align

Utilities for controlling the horizontal alignment of text lines.

ISS preview
Iced + ISS preview demonstrating text-align
ISS preview for text-align
use iced::widget::text;
use iss::{tw, TwExt};
let total = text("$1,240.00").tw(tw!("w-full text-right font-mono tabular-nums"));
Tailwind Class CSS Property / Effect iss::typed Builder
text-left text-align: left; .text_left()
text-center text-align: center; .text_center()
text-right text-align: right; .text_right()
text-justify text-align: justify; .text_justify()
text-start text-align: start; .text_start()
text-end text-align: end; .text_end()
  • text-start and text-end flip automatically inside dir_rtl(...).

vertical-align · font-size · color