]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
link to css tricks article, add code snippet to example
authorMark Otto <markdotto@gmail.com>
Wed, 6 Sep 2017 04:08:17 +0000 (21:08 -0700)
committerMark Otto <markd.otto@gmail.com>
Sun, 1 Oct 2017 03:30:40 +0000 (20:30 -0700)
docs/4.0/layout/grid.md

index b61ecd3df43135d8014a1dbc8dfdf11a7e3d5bbc..cffc2e3287eba87ae968fe737488405cb8bd3d0a 100644 (file)
@@ -10,7 +10,10 @@ toc: true
 
 Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with [flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes) and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
 
-<div class="bd-example bd-example-row">
+**New to or unfamiliar with flexbox?** [Read this CSS Tricks flexbox guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/#flexbox-background) for background, terminology, guidelines, and code snippets.
+
+<div class="bd-example-row">
+{% example html %}
 <div class="container">
   <div class="row">
     <div class="col-sm">
@@ -24,6 +27,7 @@ Bootstrap's grid system uses a series of containers, rows, and columns to layout
     </div>
   </div>
 </div>
+{% endexample %}
 </div>
 
 The above example creates three equal-width columns on small, medium, large, and extra large devices using our predefined grid classes. Those columns are centered in the page with the parent `.container`.