]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add docs for .text-break 27863/head
authorMark Otto <markdotto@gmail.com>
Mon, 17 Dec 2018 17:58:18 +0000 (09:58 -0800)
committerMark Otto <markdotto@gmail.com>
Mon, 17 Dec 2018 17:58:18 +0000 (09:58 -0800)
site/docs/4.1/utilities/text.md

index 0b493d5623fd8934832caa2c377c3a7b10359eac..04f564c335c5f3a3d847307d061f7acc76d9320b 100644 (file)
@@ -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.