Word Break
Specify how words should break when reaching the edge of a line.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Normal
Use the wb-n utility to use default line break rules.
<p class="wb-n ..."> ...</p>Break All
Use the wb-ba utility to allow word breaks between any two characters.
<p class="wb-ba ..."> ...</p>Keep All
Use the wb-ka utility to prevent word breaks for CJK texts.
<p class="wb-ka ..."> ...</p>Responsiveness
Use breakpoint prefixes to target different screen sizes.
sm:wb-[value]Small≥640px
md:wb-[value]Medium≥768px
lg:wb-[value]Large≥1024px
xxl:wb-[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:wb-[value]