Articles on Trending Technologies

Technical articles with clear explanations and examples

Avoid wrapping flex-items in Bootstrap

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

Use the flex-nowrap class in Bootstrap 4 to avoid wrapping the flex items.Here you can see the difference between wrap and nowrap −Above the flex-items are not wrapped. This is achieved using the flex-nowrap class in Bootstrap 4 −   One   Two   Three   Four   Five   Six   Seven   Eight   Nine The following is an example to avoid wrapping flex items −Example       Bootstrap Example                             FLEX WRAP AND NOWRAP     Flex items will wrap           One       Two       Three       Four       Five       Six       Seven       Eight       Nine         Flex items won't wrap           One       Two       Three       Four       Five       Six       Seven       Eight       Nine      

Read More

Create a green button (success) with Bootstrap

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 614 Views

Use the .btn-success class in Bootstrap to create a green button that indicates successExample           Bootstrap Example                                 Click below if you want to know the result of successful students:       Submit    

Read More

Dark grey outlined Bootstrap 4 Button

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

To set dark grey outlined border to a button, use the btn-outline-dark class.Include the brn-outline-dark class as if you add any other class to an element. Here, we have the button element since we want a dark grey outline for our button:   Dark gray outline Let us see an eample to implement the btn-outline-dark class in Bootstrap −Example       Bootstrap Example                             Bootstrap 4     Learning  btn-outline-dark class usage:     Dark gray outline  

Read More

Create Dismissal Alerts in Bootstrap

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

To create a dismissal alert −Add a basic alert by creating a wrapper and adding a class of .alert and one of the four contextual classes, for example, .alert-success, .alert-info, etc.Also add optional .alert-dismissable to the above class.Add a close button.You can try to run the following code to create dismissal alerts −Example           Bootstrap Example                                                       ×                    Success! Well done its submitted.                                   ×                    Info! Take this info.          

Read More

Bootstrap 4 Button .btn-outline-primary class

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

The btn-outline-primary class is used in Bootstrap 4 to set blue outlined button.Add blue outline to the button using the btn-outline-primary class as shown in the following code snippet −   Result You can try to run the following code to implement the btn-outline-primary class −Example       Bootstrap Example                             Result     Click below to get the result:     Result  

Read More

How to implement Bootstrap 4 .flex-*-nowrap class

Kristi Castro
Kristi Castro
Updated on 11-Mar-2026 293 Views

The flex-*-nowrap class works like flex-no-wrap class to avoid wrapping of flex items.However, if you want to avoid wrapping on different screen sizes, then use the flex-*-no-wrap class like −flex-lg-nowrap: Avoid wrapping on large screen sizeflex-sm-nowrap: Avoid wrapping on small screen sizeflex-md-nowrap: Avoid wrapping on medium screen sizeThe following is an example to implement the flex-*-nowrap class −Example       Bootstrap Example                             Flex items will wrap           One     ...

Read More

Set success action for a list item in a list group with Bootstrap

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

Use the list-group-item-success class in Bootstrap to set success action for a list item in a list group.You can try to run the following code to implement the list-group-item-success class −Example           Bootstrap Example                                          Java                                      Interfaces                                        Multi-threading                                        Packages                                

Read More

Container to create a grid of Bootstrap 4 cards

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 603 Views

Create a grid of cards with Bootstrap 4, using the card-columns class.Set the grid inside the class −   Include the card body inside the card container as in the following code snippet. I have added the card body under the card-class. The card-class is added inside the card-columns class −            Accessories       Let us see an example to create a grid of cards in Bootstrap −Example       Bootstrap Example                             Products                             Accessories                                       Furnitures                    

Read More

Stretch single rows of items in Bootstrap 4

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

Use the .align-items-stretch class to stretch single rows of items in Bootstrap 4.To stretch single rows of items −

Read More

Align an element with the top of the tallest element on the line in Bootstrap 4

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 153 Views

Use align-top class to align an element with the top of the tallest element on the line.Align the element like this −   Top Alignment Let us see an example to implement the align-top class in Bootstrap 4 −Example       Bootstrap Example                             Example     This is demo text     Demo Baseline     Top Alignment     Middle Alignment     Bottom Alignment  

Read More
Showing 29971–29980 of 61,297 articles
Advertisements