Bootstrap Articles

Page 25 of 49

Set the width and margin of the modal with Bootstrap

Jennifer Nicholas
Jennifer Nicholas
Updated on 11-Mar-2026 1K+ Views

Use the .modal-dialog class in Bootstrap to set the width and margin of the modal.You can try to run the following code to implement .modal-dialog class −Example           Bootstrap Example                                          Web Browser          More                                                                              ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see this information correcty.                                                          Close                                                                  

Read More

Header of the modal in Bootstrap

Jennifer Nicholas
Jennifer Nicholas
Updated on 11-Mar-2026 884 Views

To set the header of the Bootstrap modal, use the .modal-header class.You can try to run the following code to implement the modal-header class −Example           Bootstrap Example                                          Examination          Result                                                                              ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see the result.                                                          Close                                                                  

Read More

Footer of the modal in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 783 Views

To set the footer of the Bootstrap modal, use the .modal-footer class.You can try to run the following code to implement the modal-footer class −Example           Bootstrap Example                                          Examination          Result                                                                              ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see the result.                                                          Close                                                                  

Read More

Disable a dropdown item with Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 6K+ Views

To disable to dropdown item in Bootstrap, use the .disabled class with the .dropdown-menu class.You can try to run the following code to disable dropdown item −Example           Bootstrap Example                                          Beverages          The following are the beverages available in India:                       Beverages                                        Gatorade                Sting                Red Bull                Pepsi                Coca Cola                                

Read More

Set large modal in Bootstrap

George John
George John
Updated on 11-Mar-2026 3K+ Views

Use the .modal-lg class in Bootstrap to set large modal with more width.You can try to run the following code to set large modal;Example           Bootstrap Example                                          Examination          Result                                                                                    ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see the result.                                                          Close                                                                  

Read More

Add a gray background color to the active link in a default Bootstrap navbar

Krantik Chavan
Krantik Chavan
Updated on 11-Mar-2026 697 Views

To add gray background color to the active link, use the .active class in Bootstrap.You can try to run the following code to implement .active class −Example           Bootstrap Example                                                                      Website                                        Home                Tutorials                Quiz                                            Demo          This is demo text.          

Read More

Add a background color to the active list item in a Bootstrap list group

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 1K+ Views

Use the .active class to add gray background color to the active list item in a list group in Bootstrap.You can try to run the following code to add background color to the active list item −Example           Bootstrap Example                                          Features of Java                       Interface             Multi-threading             Packages             Collection             Serialization                    

Read More

Center tabs in Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 989 Views

Use the .nav-justified class in Bootstrap to center tabs in Bootstrap.You can try to run the following code to center tabs −Example           Bootstrap Example                                          Web Development          The following are the web dev technologies:                       HTML5             jQuery             JavaScript             Ajax             ES6                    

Read More

Vertically stack pills with Bootstrap

Smita Kapse
Smita Kapse
Updated on 11-Mar-2026 265 Views

Use the .nav-stacked class in Bootstrap to vertically stack pills:You can try to run the following code to implement the .nav-stacked class −Example           Bootstrap Example                                          Database          The following are the database technologies:                       DB2             MySQL             SQL             CouchDB                    

Read More

modal(options) method in Bootstrap

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 1K+ Views

If you want to set content as a Bootstrap modal, then use the .modal(options) method.For this, use jQuery to set the model on the click of a button as in the following code snippet −$(document).ready(function(){   $("#button1").click(function(){     $("#newModal1").modal({backdrop: true});   }); });Let us now implement the modal(“options”) class. Here, we have two buttons that would generate different types of modals on click. One of them would close on clicking outside the modal, but another one will not close.Here is the complete example −Example Bootstrap Example      Sample   ...

Read More
Showing 241–250 of 489 articles
« Prev 1 23 24 25 26 27 49 Next »
Advertisements