0

margin between divs in row bootstrap

I have something like this: <div class="container"> <div class="row " > <div class="col-sm-3 bg-dark "> div 1 </div> <div class="col-sm-3 bg-dark "> div 2 </div> <div class="col-sm-3 bg-dark "> div 3 </div> <div class="col-sm-3 bg-dark "> div 4 </div> </div> </div> How to make a margin between those 4 divs?

23rd Sep 2018, 6:54 PM
mercin
mercin - avatar
5 Answers
+ 3
Is your css loaded after the bootstrap css?
23rd Sep 2018, 7:27 PM
Toni Isotalo
Toni Isotalo - avatar
0
Tried with div.row > div{ margin: ...; } ????
23rd Sep 2018, 7:13 PM
KrOW
KrOW - avatar
0
yeah i tried it still no margins
23rd Sep 2018, 7:25 PM
mercin
mercin - avatar
0
Can you post a link to your code?
23rd Sep 2018, 7:28 PM
KrOW
KrOW - avatar
0
yeah it's working now my css file was loading after bootstrap. Thanks for help.
23rd Sep 2018, 7:37 PM
mercin
mercin - avatar