Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Alert Primary .alert-primary
Alert Secondary .alert-secondary
Alert Success .alert-success
Alert Danger .alert-danger
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
Alert Success .alert-link
Alert Danger .alert-link
Alert Warning .alert-link
Alert Info .alert-link
Alerts are available for any length of text with icon, as well as an optional dismiss button.
Alert Success .alert-success
Alert Info .alert-info
Alert Warning .alert-warning
Alert Danger .alert-danger
You can see this in action with a live demo:
Alert Primary .alert-dismissible
Alert Info .alert-dismissible
Alert success .alert-dismissible
Alert Light .alert-dismissible
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Alert Primary .alert-primary .bg-primary
Alert Secondary .alert-secondary .bg-secondary
Alert Success .alert-success .bg-success
Alert Danger .alert-danger .bg-danger
Alert pink .alert-pink .bg-pink
Alert purple .alert-purple .bg-purple
Alert dark .alert-dark .bg-dark
Alert light .alert-light .bg-light
Alerts can also contain additional HTML elements like headings and paragraphs.
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.