About the Bootstrap grid system
To use the grid system, make a
Next concept: you can combine these. This means: “When the browser is wider than 768px, each div is half-way across; when less than 768px, a third-way across.” There is a hierarchy of precedence here. If the container is < lg, Bootstrap falls back on whatever you’ve set for md. If md has not been set, it looks at sm. If sm not set, then it looks to your setting for xs. If that is not set, the divs are stacked vertically.
Prefix Meaning .col-xs- width = N/12 when container wider than 0 .col-sm- width = N/12 when container wider than 768px .col-md- width = N/12 when container wider than 992px .col-lg- width = N/12 when container wider than 1200px <div class="row">
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
<div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
</div>