Ordering your Flexbox
Flexbox is a really powerful module as it comes with several properties that you can customize. Let's quickly go over some more basics before we fully take the plunge and use Flexbox in Bootstrap. Let's start by talking about the order of child boxes. By default, they will appear in the order that you insert them in the HTML file. Consider the following code:
<div class="parent"> <div class="child"> 1 </div> <div class="child"> 2 </div> <div class="child"> 3 </div> </div>
A proper CSS will produce a layout that looks like this:
Here's the CSS to produce this layout if you are following along at home:
.parent { display: flex; background: #ccc; padding: 10px; font-family: helvetica; } .child { padding: 10px; margin: 10px; background: #fff; flex-grow: 1; text-align:center; height: 100px; line...