Bootstrap Container Example

The div which is having us is wrote like <div class="container" style="background-color: aqua;"></div>

Bootstrap comes with three different containers:

Click the below buttons to add the -fluid or the -{breakpoints}

Bootstrap Breakpoint

Breakpoint Class infix Dimensions
X-Small None <576px
Small sm ≥576px
Medium md ≥768px
Large lg ≥992px
Extra large xl ≥1200px
Extra extra large xxl ≥1400px

Bootstrap Grid System

How Bootstrap splits your screen into rows and cols for making responsive grid layout

col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-2
col-2
col-2
col-2
col-2
col-2
col-3
col-3
col-3
col-3
col-4
col-4
col-4
col-6
col-6
col-12

Difference between col-* and col-md-* and col-xl-* using size 4

col-4
col-4
col-4
col-md-4
col-md-4
col-md-4
col-xl-4
col-xl-4
col-xl-4


For auto responsiveness, we can just use row and col alone
col
col
col
col
col
col
col


order-* class is for mentioning in which order we want the element

First div with class col order-3
Second div with class col order-1
Third div with class col order-2