I'm new to bootstrap and struggling with a simple issue. I want the columns to fill 100% of the width of the row, but I can't figure out how to remove the padding while maintaining the spacing between them.
Despite searching for a solution, I haven't been able to find one. In the example below, I've highlighted the row with a red border.
Here is the JSFiddle link to the code snippet:
.box { height: 100px; margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.2); } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row" style="margin-top:40px;margin-bottom:40px;border-right: 1px solid red;border-left: 1px solid red;"> <div class="col-xl-3 col-md-4 col-sm-6"> <div class="box"></div> </div> <div class="col-xl-3 col-md-4 col-sm-6"> <div class="box"></div> </div> <div class="col-xl-3 col-md-4 col-sm-6"> <div class="box"></div> </div> <div class="col-xl-3 col-md-4 col-sm-6"> <div class="box"></div> </div> </div> </div>