Free UI/UX design course
Learn how to create exceptional designs by reading my new tutorial.
Start learningCards
Cards are one of Bootstrap's most popular components. These are very flexible "content containers" with extensible options for headers, footers, images, and a wide variety of content.
In this lesson we will learn how to create pricing cards. But let's start with the basics.
Basic example
This is a simple card with a title, text, and button.
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
How it works:
card
class provides basic styling (like shadows for example) and makes sure that the card will display properly.card-body
class provides a basic padding for the content of the cardcard-title
andcard-text
classes provide...nothing. They are empty classes, which we can use if we want to globally style titles and text in our cards. You can even remove it if you want.button
is just a regular button. We talked about it in the previous lesson.
Card with an image
You can very easily add an image to your card by adding a plain <img>
element with the card-img-top
class.

Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
ButtonImage with ripple
To add a ripple effect and subtle hover effec you need to modify the HTML markup of the card image (click on the image to see the effect).
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
ButtonHeader and footer
You can also add optional header and footer sections to the card.
Special title treatment
With supporting text below as a natural lead-in to additional content.
ButtonStep 1 - add pricing section with a grid
Below the "Details" section, add another "Pricing" section. Place a grid with 3 equal columns in it.
Notice that on large screens we have 3 equal columns, and on medium screens one column is stretched to full width (col-md-12
) and below it you will find 2 equal columns (col-md-6
). This is a typical vertical tablet view.
Step 2 - add pricing cards
Now let's add empty cards containing only the header
with the title.
One new thing is that we're using the text-uppercase
class here to capitalize letters.
Pricing
Basic
Advanced
Enterprise
Step 3 - add prices, buttons and lists
We have already learned all this in previous lessons, so there is no point in dwelling on it.
Basic
$ 129 /year
- Unlimited updates
- Git repository
- npm installation
Let's add similar content to the rest of the cards. Of course, you can customize the texts to your preferences.
This is what the finished "Pricing" section should look like:


About author
Michal Szymanski
Co Founder at MDBootstrap / Listed in Forbes „30 under 30" / Open-source enthusiast / Dancer, nerd & book lover.
Author of hundreds of articles on programming, business, marketing and productivity. In the past, an educator working with troubled youth in orphanages and correctional facilities.