Add the css for .card
.card {
margin: 0 auto; /* Added */
float: none; /* Added */
margin-bottom: 10px; /* Added */
}
here is the pen
UPDATE:
You can use the class .mx-auto
available in bootstrap 4 to center cards.
More Related Contents:
- My Website is Mirror-flipped on iPhone Devices
- Which way to implement this picture in HTML CSS code and bootstrap
- Trying to work on responsiveness of login form
- Bootstrap row with columns of different height
- Bootstrap 4: Multilevel Dropdown Inside Navigation
- Animate/Shrink NavBar on scroll using Bootstrap
- One tall div next to two shorter divs on Desktop and stacked on Mobile with Bootstrap 4
- How to center nav-items in Bootstrap? [duplicate]
- Create a responsive navbar sidebar “drawer” in Bootstrap?
- Bootstrap 4 row fill remaining height
- Bootstrap 4 Cards of same height in columns
- How to make Bootstrap 4 cards the same height in card-columns?
- Bootstrap – align button to the bottom of card
- Bootstrap 4 – Sticky footer – Dynamic footer height
- Bootstrap 4 – Responsive cards in card-columns
- Align the form to the center in Bootstrap 4 [duplicate]
- Add spacing between vertically stacked columns in Bootstrap 4
- Bootstrap navbar link color won’t change
- Empty vertical space between columns in Bootstrap 4
- bootstrap 3 to bootstrap 4 cols no longer horizontally aligned [duplicate]
- Bootstrap navbar: nothing is displayed on smaller devices
- Why are some of my CSS rules not working?
- Why aren’t my bootstrap 4 columns the same height?
- CSS float-right not working in Bootstrap 4 Navbar [duplicate]
- How to make Bootstrap cards the same height in card-columns?
- One flex/grid item sets the size limit for siblings
- Bootstrap: add margin/padding space between columns
- Changing highlight color
- Why doesn’t “display: block” & “width: auto” stretch a button to fill the container? [duplicate]
- Make a perfect circle around a div of variable height