Margin around card in bootstrap | Sololearn: Learn to code for FREE!

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

9/27/2020 8:48:14 PM

harshit

2 Answers

New Answer

+4

Change row row-cols-1 row-cols-md To = "row row-col-1 row-col-md"

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.