Create alerts by simply using a div with the class
To create a dismissible alert, add a
checkbox right before the alert, with the class
alert-dismiss. This checkbox will be hidden, and when it is checked, the alert will be hidden too.
The alert bellow uses a
label styled as a button to check the
input and hide the alert. Try it: