1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00
Restore word-break: break-word on .text-break to fix text breaking on flex containers
This commit is contained in:
XhmikosR
2020-06-04 10:04:33 +03:00
parent ac3c2e2356
commit 288b9b82b5
2 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
## Word break
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word`.
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word` and `word-break: break-word`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support, and add the deprecated `word-break: break-word` to avoid issues with flex containers.
{% capture example %}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>