What I want to achieve is super simple. I want a couple of pixel gap, lets say 10 between each column item in a row. Surely bootstrap comes with something as simple as this but I can't seem to find it in the documentation.
Whenever I google for something similar all I get is dodgy hacks and a mass of extra divs and classes.
Is there a built in or elegant way to achieve something so simple?
HTML
<div class="container">
<div class="row">
<div class="col-md-2 content">
1 of 2
</div>
<div class="col-md-10 content">
2 of 2
</div>
</div>
</div>
CSS
.row {
background: #f8f9fa;
margin-top: 20px;
}
.col {
border: solid 1px #6c757d;
padding: 10px;
}
.content{
background-color: #ffffff;
padding: 20px;
border-radius: 5px;
background-clip: padding-box;
margin-bottom: 20px;
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.06);
}