Stat Comparison Card
A dual-metric card with up/down comparisons and a goal bar.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm" style="max-width:340px"><div class="card-body">
<h6 class="fw-bold mb-3">This month</h6>
<div class="d-flex justify-content-between mb-3"><div><div class="text-secondary small">Revenue</div><div class="h4 fw-bold mb-0">$48.2k</div><div class="text-success small">↑ 12% vs last</div></div><div class="text-end"><div class="text-secondary small">Orders</div><div class="h4 fw-bold mb-0">1,204</div><div class="text-danger small">↓ 3% vs last</div></div></div>
<div class="progress" style="height:8px"><div class="progress-bar bg-success" style="width:68%"></div></div>
<small class="text-secondary">68% of monthly goal</small>
</div></div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.