Alert boxes
Info, success and error messages with a colored edge.
CSS · Alert boxesBeginner
.alert {
padding: 0.85rem 1rem;
border-left: 4px solid #3b82f6;
border-radius: 6px;
background: #eff6ff;
color: #1e3a8a;
}
.alert.success { border-color: #22c55e; background: #f0fdf4; color: #14532d; }
.alert.error { border-color: #ef4444; background: #fef2f2; color: #7f1d1d; }alertnoticemessageborder-left