Alerts

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at ullamcorper mauris, vitae imperdiet tortor. Cras aliquet gravida lacus eu auctor

Code Snippet To Create Above Results

                                

<div class = "alert alert-primary" role = "alert">
A simple primary alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-secondary" role = "alert">
A simple secondary alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-success" role = "alert">
A simple success alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-danger" role = "alert">
A simple danger alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-warning" role = "alert">
A simple warning alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-info" role = "alert">
A simple info alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-light" role = "alert">
A simple light alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

<div class = "alert alert-dark" role = "alert">
A simple dark alert with <a href = "#" class = "alert-link">an example link</a>. Give it a click if you like.
</div>

                                
                            
                        

/* No Changes Made To Default Variables */

                        
                    
                        
/* No Changes Made To Default Javascript */
                        
                    

Alerts With Additional Content

Code Snippet To Create Above Results

                                

<div class = "alert alert-secondary" role = "alert">
    <h4 class = "alert-heading">Well done!</h4>
    <p>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.</p>
    <hr>
    <p class = "mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>

                                
                            
                        

/* No Changes Made To Default Variables */

                        
                    
                        
/* No Changes Made To Default Javascript */
                        
                    

Dismissing Alerts

Code Snippet To Create Above Results

                                

<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>

                                
                            
                        

/* No Changes Made To Default Variables */

                        
                    
                        
/* No Changes Made To Default Javascript */