Elements
Alerts <> show code
<div class="alert alert-primary" role="alert">
This is a primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
This is a secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
This is a success alert—check it out!
</div>
<!--Link Color< -->
<div class="alert alert-warning" role="alert">
This is a 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">
This is a 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">
This is a light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<!--Additional Content< -->
<div class="alert alert-success" 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>
How to use
Alert is useful to provide feedback for perticuler user actions. Here’s the example of how to use it:
- Be sure you’ve loaded the compiled Bootstrap JavaScript.
- Use the .alert class to alert message wrapper
- Use the contextual class .alert-primary, .alert-secondary, .alert-success , .alert-info , .alert-warning , .alert-danger, .alert-light, .alert-dark with the .alert class for pre-styled alert
- To add link within alert message use .alert-link
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!
Link Color
This is a primary alert with an example link. Give it a click if you like.
This is a secondary alert with an example link. Give it a click if you like.
This is a success alert with an example link. Give it a click if you like.
This is a danger alert with an example link. Give it a click if you like.
This is a warning alert with an example link. Give it a click if you like.
This is a info alert with an example link. Give it a click if you like.
This is a light alert with an example link. Give it a click if you like.
This is a dark alert with an example link. Give it a click if you like.
Additional Content
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.
Dismissable alert with icon <> show code
<div class="iconic-alert">
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<strong><i class="fa fa-warning"></i> Warning!</strong> You should check in on some of those fields below.
</div>
</div>
How to use
- For the icon in the alert box use an class .iconic-alert in the parent wrapper
- Use any icon (here FontAwesome icon used) into an <i> element
Warning! You should check in on some of those fields below.
© 2017 Copyright Bigbag Store Bootstrap Template by Abdus.