Adding margin between 2 columns in bootstrap?

ferenan

New Member
Hi, I don't see any options to add margin between 2 columns in CSS bootstrap?
how to solve that?
 

ims

Looking for Stars...
Staff member
try to Add this may be it will help you

.classWithPad { margin:10px; padding:10px;}

Otherwise paste the code here so that we can see and tell you exact solution.
I also know a little about CSS bootstrap, just asking for the OP

Sam! where to put this class .classWithPad { margin:10px; padding:10px;} ?

Are you sure it will be next line for one of DIVs (columns)? :D
 

ferenan

New Member
I'm using these codes from Bootstrap

<div class="row">
<div class="col-md-8">col 1</div><div class="col-md-4">col 2</div>
</div>

I couldn't use margin between col 1 and col 2
 
The best approach is to add an inner container, then padding on the columns. This ensures Bootstraps functionality remains as intended.
 
Top