mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
parent
92525e9ec4
commit
1884b8a421
@ -63,8 +63,7 @@
|
|||||||
.text-decoration-none { text-decoration: none !important; }
|
.text-decoration-none { text-decoration: none !important; }
|
||||||
|
|
||||||
.text-break {
|
.text-break {
|
||||||
word-break: break-word !important; // IE & < Edge 18
|
word-wrap: break-word !important;
|
||||||
overflow-wrap: break-word !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
|
@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
|
|||||||
|
|
||||||
## Word break
|
## Word break
|
||||||
|
|
||||||
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `overflow-wrap: break-word` (and `word-break: break-word` for IE & Edge compatibility).
|
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word`.
|
||||||
|
|
||||||
{% capture example %}
|
{% capture example %}
|
||||||
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
|
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user