A card in Bootstrap 5 is a bordered box with some padding around its content. Includes options for headers, footers, and content.
Bootstrap 5 Tutorial
Bootstrap 5 Tutorial
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Cards
6 min read
•
Chapter 5 of 5
Bootstrap Cards
A card in Bootstrap 5 is a bordered box with some padding around its content. Includes options for headers, footers, and content.
Example
<!DOCTYPE html><html><head><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"></head><body class="p-3"><div class="card" style="width:300px"><div class="card-body"><h5 class="card-title">Salary Calculator</h5><p class="card-text">Calculate net monthly in-hand take home pay.</p><a href="#" class="btn btn-success">Calculate Now</a></div></div></body></html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!