aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-29 17:21:22 -0700
committerMark Otto <[email protected]>2013-07-29 17:21:22 -0700
commitddafa9a0bbc9cd89376a642ba9746ec668f6ce21 (patch)
tree82774aca5dc5971ee57f0f7fe7e1336c702cfbc4
parent5716355cda6ad163342daf2fa021045d8afe9c36 (diff)
downloadbootstrap-ddafa9a0bbc9cd89376a642ba9746ec668f6ce21.tar.xz
bootstrap-ddafa9a0bbc9cd89376a642ba9746ec668f6ce21.zip
Attempts to fix #8645: add code comments to grid example to clarify behavior
-rw-r--r--css.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/css.html b/css.html
index 58bdb2b55..e9fc41156 100644
--- a/css.html
+++ b/css.html
@@ -239,15 +239,20 @@ base_url: "../"
</div>
</div>
{% highlight html %}
+<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
<div class="col-12 col-lg-8">8</div>
<div class="col-6 col-lg-4">4</div>
</div>
+
+<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<div class="row">
<div class="col-6 col-lg-4">4</div>
<div class="col-6 col-lg-4">4</div>
<div class="col-6 col-lg-4">4</div>
</div>
+
+<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
<div class="col-6 col-lg-6">6</div>
<div class="col-6 col-lg-6">6</div>