bootstrap 4 row code example

Example 1: no-gutter bootstrap 4

.col-12 .col-sm-6 .col-md-8
.col-6 .col-md-4

Example 2: col offset in bootstrap

.col-md-3 .offset-md-3

Example 3: bootstrap grids examples

.col-md-8
.col-md-4

Example 4: row class in bootstrap

/*
In Bootstrap, the "row" class is used mainly to hold columns in it.
Bootstrap divides each row into a grid of 12 virtual columns. 
In the following example, the col-md-6 div will have the width of 6/12 of the "row"s div, meaning 50%. 
The col-md-4 will hold 33.3%, and the col-md-2 will hold the remaining 16.66%.
*/

Example 5: bootsrap 4 grid

One of three columns
One of three columns
One of three columns

Example 6: boot strap columns

1 of 3
2 of 3 (wider)
3 of 3
1 of 3
2 of 3 (wider)
3 of 3

Tags:

Misc Example