The gutters between columns in our predefined grid classes can be removed with
.no-gutters
. This removes the negativemargins
from.row
and the horizontalpadding
from all immediate children columns.
<div class="row no-gutters"> <div class="col-12 col-sm-6 col-md-8">.col-12 .col-sm-6 .col-md-8</div> <div class="col-6 col-md-4">.col-6 .col-md-4</div> </div>
References
https://getbootstrap.com/docs/4.3/layout/grid/#no-gutters