aboutsummaryrefslogtreecommitdiff
path: root/docs/layout
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-03-05 13:03:35 -0600
committerMark Otto <[email protected]>2017-03-05 12:25:41 -0800
commita607ead34c62007842f8825068367ab95812e04c (patch)
tree7d365e1f27016365635159f57a5f301fec35701c /docs/layout
parent78937cbb39f349f0b85675b9b8f4e55ce874975a (diff)
downloadbootstrap-a607ead34c62007842f8825068367ab95812e04c.tar.xz
bootstrap-a607ead34c62007842f8825068367ab95812e04c.zip
fill in docs for layout utils page
Diffstat (limited to 'docs/layout')
-rw-r--r--docs/layout/utilities-for-layout.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/layout/utilities-for-layout.md b/docs/layout/utilities-for-layout.md
index 50f4ce395..881f3326d 100644
--- a/docs/layout/utilities-for-layout.md
+++ b/docs/layout/utilities-for-layout.md
@@ -14,8 +14,18 @@ For faster mobile-friendly and responsive development, Bootstrap includes dozens
## Changing `display`
+Use our `display` utilities for responsively toggling common values of the `display` property. Mix it with our grid system, content, or components to show or hide them across specific viewports.
+
## Flexbox options
+Bootstrap 4 is built with flexbox, but not every element's `display` has been changed to `display: flex` as this would add many unnecessary overrides and unexpectedly change key browser behaviors. Most of [our components](/components/) are built with flexbox enabled.
+
+Should you need to add `display: flex` to an element, do so with `.d-flex` or one of the responsive variants (e.g., `.d-sm-flex`). You'll need this class or `display` value to allow the use of our extra [flexbox utilities](/utilities/flexbox/) for sizing, alignment, spacing, and more.
+
## Margin and padding
+Use the `margin` and `padding` [spacing utilities](/utilities/spacing/) to control how elements and components are spaced and sized. Bootstrap 4 includes a five-level scale for spacing utilities, based on a `1rem` value default `$spacer` variable. Choose values for all viewports (e.g., `.mr-3` for `margin-right: 1rem`), or pick responsive variants to target specific viewports (e.g., `.mr-md-3` for `margin-right: 1rem` starting at the `md` breakpoint).
+
## Toggle `visibility`
+
+When toggling `display` isn't needed, you can toggle the `visibility` of an element with our [visibility utilities](/utilities/visibility/).