aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Hawkins <[email protected]>2019-06-20 21:47:24 -0400
committerXhmikosR <[email protected]>2019-06-24 09:15:52 +0300
commit39fc46fb71544d70b374d969c2acdadb16f9d89c (patch)
treed81ff8fbd16e6b8c6ad8fd33aeafc06225dbe83f
parentac6eefd227374df0f4d7494e1119c66a443e502c (diff)
downloadbootstrap-39fc46fb71544d70b374d969c2acdadb16f9d89c.tar.xz
bootstrap-39fc46fb71544d70b374d969c2acdadb16f9d89c.zip
Combine duplicate documentation examples into one to fix the confusing text.
fixes issue #28892
-rw-r--r--site/content/docs/4.3/layout/grid.md32
1 files changed, 9 insertions, 23 deletions
diff --git a/site/content/docs/4.3/layout/grid.md b/site/content/docs/4.3/layout/grid.md
index 0da95311f..1cd169770 100644
--- a/site/content/docs/4.3/layout/grid.md
+++ b/site/content/docs/4.3/layout/grid.md
@@ -149,17 +149,21 @@ For example, here are two grid layouts that apply to every device and viewport,
{{< /example >}}
</div>
-Equal-width columns can be broken into multiple lines, but there was a [Safari flexbox bug](https://github.com/philipwalton/flexbugs#flexbug-11) that prevented this from working without an explicit `flex-basis` or `border`. There are workarounds for older browser versions, but they shouldn't be necessary if you're up-to-date.
+### Equal-width multi-line
+
+Create equal-width columns that span multiple lines by inserting a `.w-100` where you want the columns to break to a new line. Make the breaks responsive by mixing the `.w-100` with some [responsive display utilities]({{< docsref "/utilities/display" >}}).
+
+There was a [Safari flexbox bug](https://github.com/philipwalton/flexbugs#flexbug-11) that prevented this from working without an explicit `flex-basis` or `border`. There are workarounds for older browser versions, but they shouldn't be necessary if you're up-to-date.
<div class="bd-example-row">
{{< example >}}
<div class="container">
<div class="row">
- <div class="col">Column</div>
- <div class="col">Column</div>
+ <div class="col">col</div>
+ <div class="col">col</div>
<div class="w-100"></div>
- <div class="col">Column</div>
- <div class="col">Column</div>
+ <div class="col">col</div>
+ <div class="col">col</div>
</div>
</div>
{{< /example >}}
@@ -231,24 +235,6 @@ Use `col-{breakpoint}-auto` classes to size columns based on the natural width o
{{< /example >}}
</div>
-### Equal-width multi-row
-
-Create equal-width columns that span multiple rows by inserting a `.w-100` where you want the columns to break to a new line. Make the breaks responsive by mixing the `.w-100` with some [responsive display utilities]({{< docsref "/utilities/display" >}}).
-
-<div class="bd-example-row">
-{{< example >}}
-<div class="container">
- <div class="row">
- <div class="col">col</div>
- <div class="col">col</div>
- <div class="w-100"></div>
- <div class="col">col</div>
- <div class="col">col</div>
- </div>
-</div>
-{{< /example >}}
-</div>
-
## Responsive classes
Bootstrap's grid includes five tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.