aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-09-12 19:45:49 -0700
committerMark Otto <[email protected]>2017-09-30 20:30:40 -0700
commit6e9100155da57a1459b5f970e15f3b095351b52f (patch)
treebffaf913804b6c615cd50fb994d04ae86833a797 /docs
parent92a9b68372d05f22b4a9ed2eee94e28f3b4e341c (diff)
downloadbootstrap-6e9100155da57a1459b5f970e15f3b095351b52f.tar.xz
bootstrap-6e9100155da57a1459b5f970e15f3b095351b52f.zip
rewrite containers and rows section
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/layout/grid.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/4.0/layout/grid.md b/docs/4.0/layout/grid.md
index cffc2e328..4389c36ce 100644
--- a/docs/4.0/layout/grid.md
+++ b/docs/4.0/layout/grid.md
@@ -34,8 +34,8 @@ The above example creates three equal-width columns on small, medium, large, and
Breaking it down, here's how it works:
-- Containers provide a means to center your site's contents. Use `.container` for fixed width or `.container-fluid` for full width.
-- Rows are horizontal groups of columns that ensure your columns are lined up properly. We use the negative margin method on `.row` to ensure all your content is aligned properly down the left side.
+- Containers provide a means to center and horizontally pad your site's contents. Use `.container` for specific pixel width or `.container-fluid` for `width: 100%`.
+- Rows are wrappers for columns. Each column has horizontal `padding` (called a gutter) for controlling the space between them. This `padding` is then counteracted on the rows with negative margins; this way, all your content is aligned properly down the left side.
- Content should be placed within columns, and only columns may be immediate children of rows.
- Thanks to flexbox, grid columns without a set width will automatically layout with equal widths. For example, four instances of `.col-sm` will each automatically be 25% wide for small breakpoints.
- Column classes indicate the number of columns you'd like to use out of the possible 12 per row. So, if you want three equal-width columns, you can use `.col-sm-4`.