Sizing to border-box, so that I can give my grid some gutters, but it surprisingly didn't fit into the row any more, even though the columns span 12 rows altogether. I actually thought that setting the box-sizing to border-box will add up both padding, margin and border to the set width and height.
<div class="row>
<div class="col-6"></div>
<div class="col-4"></div>
<div class-"col-2"></div>
</div>
[class*="col-"] {
padding: 15px;
margin: 5px;
float: left;
}
* {
box-sizing: border-box;
}
How can I give my grid some gutters?