Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Wrap any text and an optional dismiss button in .alert
and one of the four contextual classes (e.g., .success
) for basic alert messages.
<div class="alert success">...</div> <div class="alert info">...</div> <div class="alert warning">...</div> <div class="alert danger">...</div>
Build on any alert by adding an optional .dismissible
and close button.
<div class="alert warning dismissible"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div>
The <a>
tag default matching colored links within any alert.
<div class="alert success"> <a href="#">...</a> </div> <div class="alert info"> <a href="#">...</a> </div> <div class="alert warning"> <a href="#">...</a> </div> <div class="alert danger"> <a href="#">...</a> </div>