Bootstrap Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:
Do not forget to see the Bootstrap magic at the end of article.
Bootstrap has divided the entire screen into 12 equal columns.
Rows has to be kept within a .container ( fixed-width ) or .container-fluid ( full-width) for proper alignment and padding.
To create horizontal groups of columns use Rows .row.
Content should be placed within the columns .col-md-1
Bootstrap grid system is responsive, and the columns will re-arrange automatically depending on the screen size.
Grid Classes
Description
Bootstrap is basically build on a grid that is made of 12 units i.e. there will be 12 logical sections when pages are put together. So, if two columns have to be made, two elements must be there each with 6 units in the grid system for sharing the page equally. This is possible by using classes.
Syntax of these classes will be as follows.
.col-(class-name/size of screen)-(no.of columns in grid system)