Bootstrap Alert Stack
A stack of success, warning and danger alerts with leading icons, using Bootstrap alerts.
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 style="width:380px;max-width:100%">
<div class="alert alert-success d-flex align-items-center"><span class="me-2">✓</span><div>Your changes were saved successfully.</div></div>
<div class="alert alert-warning d-flex align-items-center"><span class="me-2">⚠</span><div>Your trial ends in 3 days.</div></div>
<div class="alert alert-danger d-flex align-items-center mb-0"><span class="me-2">✕</span><div>Could not connect to the server.</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.