Cookie Consent Card
A cookie consent card with decline and accept-all buttons.
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" style="max-width:400px"><div class="card-body">
<div class="d-flex gap-2 mb-2"><span class="fs-4">🍪</span><div><h6 class="fw-bold mb-1">We use cookies</h6><p class="text-secondary small mb-0">We use cookies to improve your experience. By continuing you agree to our policy.</p></div></div>
<div class="d-flex gap-2 justify-content-end mt-2"><button class="btn btn-light btn-sm">Decline</button><button class="btn btn-primary btn-sm">Accept all</button></div>
</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.