August 2016
Beginner
246 pages
5h 5m
English
Let's assume that we are building a simple responsive website and we need a three-column layout for our template. Here's what your markup should look like:
<div class="container">
<div class="row">
<div class="col-md-4">
<!-- column 1 //-->
</div>
<div class="col-md-4">
<!-- column 2 //-->
</div>
<div class="col-md-4">
<!-- column 3 //-->
</div>
</div>
</div>
As you can see, I've inserted three <div>s inside my row <div>, each with a class of .col-md-4. For devices that have a resolution of 768 pixels or greater, you'll see a three-column layout like this:

Now, if you were to view this same layout on a device ...
Read now
Unlock full access