<div class="alert alert-primary" role="alert"> A simple primary alert—check it out! </div>
<div class="alert alert-primary" role="alert"> A simple primary alert with <a href="#" class="alert-link"></a>. </div>
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.
<div class="alert alert-success alert-dismissible fade show" role="alert"> <strong>Well done!</strong> You successfully read this important alert message. <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true"> × </span> </button> </div>
<div class="alert alert-primary alert-pills" role="alert">
<span class="badge badge-danger badge-pill"> New </span>
<span class="alert-content"> A Modern primary alert—check it out! </span>
</div>
<div class="alert alert-outline-primary alert-pills" role="alert">
<span class="badge badge-danger badge-pill"> New </span>
<span class="alert-content"> A Modern primary alert—check it out! </span>
</div>