alert button bootstrap code example
Example 1: bootstrap alert
This is a primary alert—check it out!
This is a secondary alert—check it out!
This is a success alert—check it out!
This is a danger alert—check it out!
This is a warning alert—check it out!
This is a info alert—check it out!
This is a light alert—check it out!
This is a dark alert—check it out!
Example 2: bootstrap flash message
Holy guacamole! You should check in on some of those fields below.
Example 3: alert bootstrap
Holy guacamole! You should check in on some of those fields below.
Example 4: bootstrap alert box
Alerts in Bootstrap:
--------------------------------
Alert classes you can use to check
.alert-primary
.alert-secondary
.alert-success
.alert-danger
.alert-warning
.alert-info
.alert-light
.alert-dark
Simple alert:
-------------
This is a primary alert—check it out!
Alert with close button and decriptive feature:
------------------------------------------------
Holy guacamole! You should check in on some of those fields below.
Trigger via javascript:
$(".alert").alert();
Example 5: bootstrap Alerts Additional content
Alerts can also contain additional HTML elements like headings, paragraphs
and dividers.
Well done!
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.