Game Development

Wednesday 9 November 2016

Bootstrap Grid System


Bootstrap's grid system is responsive, and the columns will re-arrange automatically depending on the screen size.

Grid Classes

The Bootstrap grid system has four classes:
  • xs (for phones)
  • sm (for tablets)
  • md (for desktops)
  • lg (for larger desktops)
The classes above can be combined to create more dynamic and flexible layouts.

Basic Structure of a Bootstrap Grid

The following is a basic structure of a Bootstrap grid:
<div class="row">  <div class="col-*-*"></div></div><div class="row">  <div class="col-*-*"></div>  <div class="col-*-*"></div>  <div class="col-*-*"></div></div><div class="row">  ...</div>

Three Equal Columns


 <div class="row">  <div class="col-sm-4">.col-sm-4</div>  <div class="col-sm-4">.col-sm-4</div>  <div class="col-sm-4">.col-sm-4</div></div>

No comments:

Post a Comment