.col
class on a specified number of elements and Bootstrap will recognize how many elements there are (and create equal-width columns). Hypersnap 1 4 2 x 2. In the example below, we use three col elements, which gets a width of 33.33% each..row-cols-*
classes:.col-
(extra small devices - screen width less than 576px).col-sm-
(small devices - screen width equal to or greater than 576px).col-md-
(medium devices - screen width equal to or greater than 768px).col-lg-
(large devices - screen width equal to or greater than 992px).col-xl-
(xlarge devices - screen width equal to or greater than 1200px)sm
and md
, you only need to specify sm
..no-gutters
class to the .row
container to remove gutters (extra space):