Skip to content

Typography

Word Break

Utilities for controlling word breaks in an element.

Quick reference

ClassDescription
break-normaloverflow-wrap: normal word-break: normal
break-wordsoverflow-wrap: break-word
break-allword-break: break-all
break-keepword-break: keep-all

Basic usage

Normal

Use break-normal to only add line breaks at normal word break points.

A really long finnish word, that has nothing to do with warp technology, is Lentokonesuihkuturbiinimoottoriapumekaanikkoaliupseerioppilas, meaning Aeroplane jet turbine motor assistant mechanic non-commissioned officer in training.

html
<p class="break-normal ...">...</p>

Break Words

Use break-words to add line breaks mid-word if needed.

A really long finnish word, that has nothing to do with warp technology, is Lentokonesuihkuturbiinimoottoriapumekaanikkoaliupseerioppilas, meaning Aeroplane jet turbine motor assistant mechanic non-commissioned officer in training.

html
<p class="break-words ...">...</p>

Break All

Use break-all to add line breaks whenever necessary, without trying to preserve whole words.

A really long finnish word, that has nothing to do with warp technology, is Lentokonesuihkuturbiinimoottoriapumekaanikkoaliupseerioppilas, meaning Aeroplane jet turbine motor assistant mechanic non-commissioned officer in training.

html
<p class="break-all ...">...</p>

Released under the Apache 2.0 License.