Google News
logo
Bootstrap-3 - Interview Questions
How will you create a Bootstrap Dismissal Alert?
You need to follow a few steps to build a dismissal alert :
 
First, you have to add a basic alert by creating a wrapper <div> and adding a class of .alert and one of the four contextual classes.
 
Also add optional .alert-dismissable to the above <div> class.
 
Next, you have to add a close button.
 
Finally, use the <button> element with the data-dismiss = “alert” data attribute.

Example : 

<div class="alert alert-success alert-dismissable">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
         Free Time Learning is successfully updated !
</div>​
Advertisement