center card bootstrap code example

Example 1: center card in bootstrap stack overflow

.card {
        margin: 0 auto; /* Added */
        float: none; /* Added */
        margin-bottom: 10px; /* Added */
}

Example 2: boostrap card

Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content.

Card link Another link

Example 3: bootstrap card change image

.card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}

Example 4: bootstrap + cards

Card image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere

Tags:

Misc Example