aboutsummaryrefslogtreecommitdiff
path: root/site/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-12-21 15:35:55 -0800
committerMark Otto <[email protected]>2018-12-21 15:35:55 -0800
commitd51b408d0fdd9f5bbaf4909e781aebe3fcf6603b (patch)
tree4853c7ce8167d163296a7c2b7ac3da1e1825ae26 /site/docs
parent2162cb18062a88ae0a22d62f6fc4091c9efa4130 (diff)
parentf7bf353cdcc5c36641dfd2a694c8ccd4815e4a5f (diff)
downloadbootstrap-d51b408d0fdd9f5bbaf4909e781aebe3fcf6603b.tar.xz
bootstrap-d51b408d0fdd9f5bbaf4909e781aebe3fcf6603b.zip
Merge branch 'text-break-util' into v4-dev
Diffstat (limited to 'site/docs')
-rw-r--r--site/docs/4.2/utilities/text.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/site/docs/4.2/utilities/text.md b/site/docs/4.2/utilities/text.md
index 0b493d562..04f564c33 100644
--- a/site/docs/4.2/utilities/text.md
+++ b/site/docs/4.2/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.