Open this example in the interactive library
Source code
<style>
.demo {
word-break: break-all;
max-width: 10rem;
}
</style>
<p class="demo">This sentence may break inside an ordinary word.</p>
Break words at any character with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
word-break: break-all;
max-width: 10rem;
}
</style>
<p class="demo">This sentence may break inside an ordinary word.</p>