.alert-success
). For inline dismissal, use the alerts jQuery plugin. To learn more about bootstrap alerts click hereAww 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.
Using the alert JavaScript plugin, it’s possible to dismiss any alert inline. Here’s how:
.alert-dismissible
class, which adds extra padding to the right of the alert and positions the .close
button.data-dismiss="alert"
attribute, which triggers the JavaScript functionality. Be sure to use the <button>
element with it for proper behavior across all devices..fade
and .show
classes.