Possible duplicate of How do I add a margin between bootstrap columns without wrapping , but i cant apply this solution to my situation. Here is my html:
<div class="container">
<div class="row">
<div class="col-xs-6">
left block
</div>
<div class="col-xs-6">
right block
</div>
</div>
</div>
and css:
.container{
margin: 10px
}
.col-xs-6{
-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
padding: 15px;
}
and link to jsfiddle: http://jsfiddle.net/sujdtsLa/3/
I have two blocks with shadow, that i need to have a margin, when i wrap them into div and add padding, padding just applied, but blocks still close to each other.
I think, i need to use margin property itself, but it will destroy adaptability