Is there a way to achieve equal spacing between all blocks in a row, similar to the left and right padding that Bootstrap automatically applies? Currently, Bootstrap adds padding to all columns on both sides, but does not render extra spacing on the left side of the first column and right side of the last column in a row due to the following CSS:
.row {
margin-right: -15px;
margin-left: -15px;}
This results in double spacing within the row which may not be desired in some cases.
I came across a snippet called .no-gutter that removes all padding, but I specifically do not want all padding removed:
.no-gutter > [class*='col-'] {
padding-right:0;
padding-left:0;
}
I attempted to solve this issue by adding padding-left:0 to the second column. However, this also removes the padding for mobile view (when all columns take up the entire width). While I can address this with media queries for each breakpoint, I am wondering if there is an existing Bootstrap snippet that can handle this scenario. I would also like to hear from others who have tried to achieve this.
I have created a test case on JSFiddle - http://jsbin.com/wucaho/1/edit?html,css,output
This screenshot illustrates the issue: