Image Overlay Card
A media card with a gradient overlay, badge and caption at the bottom.
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="position-relative rounded-3 overflow-hidden" style="width:280px;height:200px">
<div class="w-100 h-100" style="background:linear-gradient(135deg,#11998e,#38ef7d)"></div>
<div class="position-absolute bottom-0 start-0 w-100 p-3 text-white" style="background:linear-gradient(transparent,rgba(0,0,0,.7))">
<span class="badge text-bg-light mb-1">Nature</span>
<h6 class="mb-0 fw-bold">Mountain Escape</h6>
<span class="small opacity-75">48 photos</span>
</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.