How will you create a Bootstrap Dismissal Alert?



How will you create a Bootstrap Dismissal Alert?..

Answer / Pranav Kumar Ojha

To create a dismissible alert with Bootstrap, use the .alert-dismissible class and add the close button (<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>). Here's an example:nn```htmln<div class="alert alert-warning alert-dismissible fade show" role="alert">n <strong>Holy guacamole!</strong> You should check in on some of those fields below.<br>n <button type="button" class="close" data-dismiss="alert" aria-label="Close">n <span aria-hidden="true">&times;</span>n </button>n</div>n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Bootstrap Interview Questions

Explain me a basic grid structure in bootstrap

1 Answers  


What are the responsive design patterns?

1 Answers  


Would you differentiate between fluid layout & responsive layout?

1 Answers  


What do you mean by normalize in bootstrap?

1 Answers  


What is difference between fluid layout and responsive layout?

1 Answers  


How will you create a alternate progress bar using bootstrap??

1 Answers  


Explain bootstrap 4 navbars?

1 Answers  


What is a Modal Plugin?

1 Answers  


Bootstrap multiple form types i.e. Horizontal, inline and basic have similar views when they are viewed under 768px devices? Yes or no explain?

1 Answers  


Would you tell me something about glyphicons and how are they written in our code?

1 Answers  


What is the step-wise procedure for creating basic or vertical forms?

1 Answers  


What is bootstrap 4 alerts?

1 Answers  


Categories