]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Attempts to fix #8645: add code comments to grid example to clarify behavior
authorMark Otto <otto@github.com>
Tue, 30 Jul 2013 00:21:22 +0000 (17:21 -0700)
committerMark Otto <otto@github.com>
Tue, 30 Jul 2013 00:21:22 +0000 (17:21 -0700)
css.html

index 58bdb2b55da5987c7728dab25da93c0b2cd42cbe..e9fc41156f9ea83db7d5aafd7880c30c4d0a3c71 100644 (file)
--- 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>