Text Wrap
Set how text wraps within an element.
Newly available
This feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Chrome
Edge
Firefox
Safari
tw-btext-wrap: balance;tw-ntext-wrap: nowrap;tw-ptext-wrap: pretty;tw-wtext-wrap: wrap;Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:tw-(value)Small≥640px
md:tw-(value)Medium≥768px
lg:tw-(value)Large≥1024px
xxl:tw-(value)Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:tw-(value)