Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/content/docs/5.2/layout/grid.md')
-rw-r--r--site/content/docs/5.2/layout/grid.md28
1 files changed, 14 insertions, 14 deletions
diff --git a/site/content/docs/5.2/layout/grid.md b/site/content/docs/5.2/layout/grid.md
index 05fc1bd65d..765b7eb603 100644
--- a/site/content/docs/5.2/layout/grid.md
+++ b/site/content/docs/5.2/layout/grid.md
@@ -15,7 +15,7 @@ Bootstrap's grid system uses a series of containers, rows, and columns to layout
{{< /callout >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col">
Column
@@ -144,7 +144,7 @@ Utilize breakpoint-specific column classes for easy column sizing without an exp
For example, here are two grid layouts that apply to every device and viewport, from `xs` to `xxl`. Add any number of unit-less classes for each breakpoint you need and every column will be the same width.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col">
1 of 2
@@ -172,7 +172,7 @@ For example, here are two grid layouts that apply to every device and viewport,
Auto-layout for flexbox grid columns also means you can set the width of one column and have the sibling columns automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col">
1 of 3
@@ -203,7 +203,7 @@ Auto-layout for flexbox grid columns also means you can set the width of one col
Use `col-{breakpoint}-auto` classes to size columns based on the natural width of their content.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row justify-content-md-center">
<div class="col col-lg-2">
1 of 3
@@ -238,7 +238,7 @@ Bootstrap's grid includes six tiers of predefined classes for building complex r
For grids that are the same from the smallest of devices to the largest, use the `.col` and `.col-*` classes. Specify a numbered class when you need a particularly sized column; otherwise, feel free to stick to `.col`.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col">col</div>
<div class="col">col</div>
@@ -257,7 +257,7 @@ For grids that are the same from the smallest of devices to the largest, use the
Using a single set of `.col-sm-*` classes, you can create a basic grid system that starts out stacked and becomes horizontal at the small breakpoint (`sm`).
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col-sm-8">col-sm-8</div>
<div class="col-sm-4">col-sm-4</div>
@@ -275,7 +275,7 @@ Using a single set of `.col-sm-*` classes, you can create a basic grid system th
Don't want your columns to simply stack in some grid tiers? Use a combination of different classes for each tier as needed. See the example below for a better idea of how it all works.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
<div class="col-md-8">.col-md-8</div>
@@ -304,7 +304,7 @@ Use the responsive `.row-cols-*` classes to quickly set the number of columns th
Use these row columns classes to quickly create basic grid layouts or to control your card layouts.
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-2">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -315,7 +315,7 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-3">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -326,7 +326,7 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-auto">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -337,7 +337,7 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-4">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -348,7 +348,7 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-4">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -359,7 +359,7 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
<div class="col">Column</div>
<div class="col">Column</div>
@@ -388,7 +388,7 @@ You can also use the accompanying Sass mixin, `row-cols()`:
To nest your content with the default grid, add a new `.row` and set of `.col-sm-*` columns within an existing `.col-sm-*` column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
{{< example class="bd-example-row" >}}
-<div class="container">
+<div class="container text-center">
<div class="row">
<div class="col-sm-3">
Level 1: .col-sm-3