aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-12-17 09:58:18 -0800
committerMark Otto <[email protected]>2018-12-17 09:58:18 -0800
commitf7bf353cdcc5c36641dfd2a694c8ccd4815e4a5f (patch)
treef7da0f335015f91ed1230207b89a3767c1a7638f /site
parent353c8b4376deb0426167e6908b599ee4aa842537 (diff)
downloadbootstrap-f7bf353cdcc5c36641dfd2a694c8ccd4815e4a5f.tar.xz
bootstrap-f7bf353cdcc5c36641dfd2a694c8ccd4815e4a5f.zip
Add docs for .text-break
Diffstat (limited to 'site')
-rw-r--r--site/docs/4.1/utilities/text.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/site/docs/4.1/utilities/text.md b/site/docs/4.1/utilities/text.md
index 0b493d562..04f564c33 100644
--- a/site/docs/4.1/utilities/text.md
+++ b/site/docs/4.1/utilities/text.md
@@ -66,6 +66,15 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
{% endcapture %}
{% include example.html content=example %}
+## Word break
+
+Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-break: break-word`.
+
+{% capture example %}
+<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
+{% endcapture %}
+{% include example.html content=example %}
+
## Text transform
Transform text in components with text capitalization classes.