in Bootstrap by
Q:
How will you create a Bootstrap Dismissal Alert?

▼ Show 1 Answer

0 votes
by

To build a dismissal alert -

Add a basic alert by creating a wrapper <div> and adding a class of .alert and one of the four contextual classes (e.g., .alert-success, .alert-info, .alert-warning, .alert-danger).

Also add optional .alert-dismissable to the above <div> class.

Add a close button.

Use the <button> element with the data-dismiss = "alert" data attribute.

Bootstrap
Learn More with Madanswer

Related questions

+2 votes
asked Jun 1, 2020 in Bootstrap by SakshiSharma
...