CSS Framework Articles

Page 39 of 45

Set a white border to an element in Bootstrap

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 205 Views

Use the border-white class in Bootstrap 4 to set white border to an element.   This has white border The test class above styles the element as shown below − .test {   width: 120px;   height: 100px;   margin: 10px;   background: blue; } Let us see an example to implement the border-white class in Bootstrap −Example       Bootstrap Example                             .test {       width: 120px;       height: 100px;       margin: 10px;       background: blue;     }               Two Rectangles     This has white border     This has orange border  

Read More

Bootstrap 4 Button .btn-outline-dark class

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 393 Views

Use the .btn-outline-dark class in Bootstrap to set dark outline on a button.The following is an example of a button with dark outline −Set the above outline to the button, using the btn-outline-dark class as shown below −   Submit You can try to run the following code to implement the btn-outline-dark class −Example       Bootstrap Example                               Bootstrap 4     Learning  btn-outline-dark class usage:     Submit  

Read More

Bootstrap .modal("toggle") method

David Meador
David Meador
Updated on 11-Mar-2026 3K+ Views

Use the .modal(“toggle”) method in Bootstrap to toggle the modal.As shown below, the modal generates on the click of a button −$(document).ready(function(){   $("#button1").click(function(){     $("#newModal").modal("toggle");   }); });Here is the button used above −   Modal One You can try to run the following code to implement the modal(“toggle”) method −Example       Bootstrap Example                             Sample     Modal One                                         ×             Sample Modal                                 Click outside to close it.                                 Close                                   $(document).ready(function(){     $("#button1").click(function(){       $("#newModal").modal("toggle");     });   });  

Read More

Container to create a grid of Bootstrap 4 cards like a group

David Meador
David Meador
Updated on 11-Mar-2026 420 Views

To set a container for Bootstrap card and set it like a group, use the card-group class.Use it and create a grid like the following with two Bootstrap cards −             Demo Text!                          Warning!           The following is an example to create a grid (group of cards) in Bootstrap −Example       Bootstrap Example                             Group of Messages                             Demo Text!                                       Warning!                                        Well done!                                       Selected!                        

Read More

Bootstrap 4 .flex-wrap class

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

Use the flex-wrap class in Bootstrap 4 to wrap flex items. The following is the code snippet to wrap the flex items −   .   .  

Read More

Align an element with the baseline of the parent in Bootstrap 4

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 188 Views

Use the align-baseline class in Bootstrap 4 to align an element with the baseline of the parent elment.Set the align-baselinec class like the following code snippet −Now add the content inside it −     Demo Baseline You can try to run the following code to align an element with the parent’s baseline −Example       Bootstrap Example                                   Example       This is demo text       Demo Baseline      

Read More

table-bordered class in Bootstrap

George John
George John
Updated on 11-Mar-2026 344 Views

To implement a table-bordered class, you can try to run the following code −Example           Bootstrap Table                                                Footballer Rank                                               Footballer                   Rank                   Country                                                                           Messi                   1                   Argentina                                                   Neymar                   2                   Brazil                                                   Ronaldo                   3                   Portugal                                      

Read More

Stacked-to-horizontal Bootstrap Grid

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

The following is an example showing stacked-to-horizontal Bootstrap Grid −Example           Bootstrap Example                                          Heading One                                      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do                eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut                enim ad minim ...

Read More

Usage of Bootstrap previous class to left align the links

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

Use the .previous class in Bootstrap to left align the links. You can try to run the following code to implement the .previous class −Example           Bootstrap Example                                 Answers                             ← Older             Newer →              

Read More

Bootstrap Grid for multiple devices

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

The following is an example showing the usage of Grid for multiple devices −Example           Bootstrap Example                                          Hello, world!                                      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do                   eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut         ...

Read More
Showing 381–390 of 445 articles
« Prev 1 37 38 39 40 41 45 Next »
Advertisements