Bootstrap 4 Grid System Explained: Responsive Layout Design
Table of Content:
Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
Only Important Code
Hello World!
Three equal width columns! Try to add a new div with class="col" inside the row class - this will create four equal-width columns.
.col.col.col
Full Code For Above Example
Bootstrap Example Hello World!
Three equal width columns! Try to add a new div with class="col" inside the row class - this will create four equal-width columns.
.col.col.col
Only Important Code
Hello World!
Resize the browser window to see the effect.
The columns will automatically stack on top of each other when the screen is less than 576px wide.
.col-sm-4.col-sm-8
Full Code For The Above Example
Bootstrap Example Hello World!
Resize the browser window to see the effect.
The columns will automatically stack on top of each other when the screen is less than 576px wide.
.col-sm-4.col-sm-8