Bootstrap Grid System devides a screen into 12 columns. It is reaponsible for the responsive nature of Bootstrap across multiple devices. The various screen sizes defiled in Bootstrap are Small sm
Medium md
Extra Small xs
and Large lg
. Basically bootstrap is a Front End web framework it has inbuilt css
and javascript
components that make it easy for you to create beautiful front end. To create a grid in bootstrap you first have to create a container, then you create a row, after that you define your columns by asigning .col-md
, .col-lg
,. col-xs
,. col-sm
classes to your div
Below Is an example of a grid system. Reference from Bootstrap Documentation
http://getbootstrap.com/css/
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-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-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
<div class="col-xs-6">.col-xs-6</div>
<div class="col-xs-6">.col-xs-6</div>
</div>
Also look at an implementation from this jsfiddle
https://jsfiddle.net/KyleMit/Gt25L/