Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Toggle Snippets
Heads up! This alert needs your attention, but it's not super important.
.alert-primary { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; color: #fff !important; background-color: #045fb4 !important; border-color: transparent !important;}
Well done! This alert will show you some extra information.
.alert-info { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #f0f0f0 !important; border-color: transparent !important;}
Well done! You successfully read this important alert link message.
.alert-success { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #e5f8d1 !important; color: #3f6910 !important; border-color: transparent !important;}
Warning! Better check yourself, you're not looking too good.
.alert-warning { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; color: #786600 !important; background-color: #fff7c9 !important; border-color: transparent !important;}
This is a danger alert — check it out!
.alert-danger { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; color: #801f00 !important; background-color: #ffd8cc !important; border-color: transparent !important;}
Well done! You successfully read this important alert link message with a close button.
.alert-success { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #e5f8d1 !important; color: #3f6910 !important; border-color: transparent !important;} .btn-close { float: right; font-size: 21px; font-weight: 700; line-height: 1; opacity: .2; padding: 0; cursor: pointer; background: transparent; border: 0; color: currentColor; outline: none;}
Well done! You successfully read this important global message.
.alert-success .global { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #e5f8d1 !important; color: #3f6910 !important; border-color: transparent !important; text-align: center;}
Well done! You successfully read this message with an icon.
.alert-info .icon { border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #f0f0f0 !important; border-color: transparent !important;}
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.
Also some extra text and a link.
.alert-secondary .alert-link { color: #202326; font-weight: 700; border-radius: 3px !important; padding: 15px !important; margin-bottom: 25px; position: relative; background-color: #f0f0f0 !important; border-color: transparent !important;}