0

Margin around card in bootstrap

I have set margin:15px for card but it is only taking left margin and not the right margin. Also it is expanding towards right by 15px and going out of the container. https://code.sololearn.com/WzkhXFThQP0Z/?ref=app

27th Sep 2020, 8:48 PM
harshit
harshit - avatar
2 Answers
+ 4
Change row row-cols-1 row-cols-md To = "row row-col-1 row-col-md"
28th Sep 2020, 1:54 AM
Reivin
Reivin - avatar
0
Thanks Reivin, it worked. But on bootstrap website they have many a times used cols and I have also used cols before but why it is not working here. What is the difference between using cols and col.
28th Sep 2020, 2:19 PM
harshit
harshit - avatar