Bootstrap alert is prepared for any length of text, as well as an optional close button. For a styling, use one of the required contextual classes (e.g.,.alert-success
).
Use the .alert-link
utility class to immediately give matching colored links inside any alert.
Alert can also incorporate supplementary HTML elements like heading, paragraph, and divider.
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.
Using the JavaScript plugin, it’s possible to remove any alert.