aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/4.6/utilities/overflow.md
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-01-19 18:16:38 +0200
committerGitHub <[email protected]>2021-01-19 18:16:38 +0200
commit6ffb0b48e455430f8a5359ed689ad64c1143fac2 (patch)
tree6262338881c32c3c19e4977152ecd0fca61a341c /site/content/docs/4.6/utilities/overflow.md
parent9d87bd7a30c1874a9c3d60041a4042228753dd0e (diff)
downloadbootstrap-4.6.0.tar.xz
bootstrap-4.6.0.zip
Release v4.6.0. (#32726)v4.6.0
* Bump version to v4.6.0. * Dist
Diffstat (limited to 'site/content/docs/4.6/utilities/overflow.md')
-rw-r--r--site/content/docs/4.6/utilities/overflow.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/site/content/docs/4.6/utilities/overflow.md b/site/content/docs/4.6/utilities/overflow.md
new file mode 100644
index 000000000..079da225e
--- /dev/null
+++ b/site/content/docs/4.6/utilities/overflow.md
@@ -0,0 +1,24 @@
+---
+layout: docs
+title: Overflow
+description: Use these shorthand utilities for quickly configuring how content overflows an element.
+group: utilities
+---
+
+Barebones `overflow` functionality is provided for two values by default, and they are not responsive.
+
+<div class="bd-example d-md-flex">
+ <div class="overflow-auto p-3 mb-3 mb-md-0 mr-md-3 bg-light" style="max-width: 260px; max-height: 100px;">
+ This is an example of using <code>.overflow-auto</code> on an element with set width and height dimensions. By design, this content will vertically scroll.
+ </div>
+ <div class="overflow-hidden p-3 bg-light" style="max-width: 260px; max-height: 100px;">
+ This is an example of using <code>.overflow-hidden</code> on an element with set width and height dimensions.
+ </div>
+</div>
+
+```html
+<div class="overflow-auto">...</div>
+<div class="overflow-hidden">...</div>
+```
+
+Using Sass variables, you may customize the overflow utilities by changing the `$overflows` variable in `_variables.scss`.