Articles on Trending Technologies

Technical articles with clear explanations and examples

Align a flex item in the center with Bootstrap 4

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 1K+ Views

To align a flex item in the center with Bootstrap 4, use the .align-self-center class.The following is my div for flex −Now add flex items and here I have applied the align-self-center class on the 3rd flex item −   A-one   B-one   C-one   D-one You can try to run the following code to implement the align-self-center class in Bootstrap −Example       Bootstrap Example                             Align Specific Flex Item in the center           A-one       B-one       C-one       D-one      

Read More

Stretch gathered items on different screens in Bootstrap 4

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

Use the .align-content-*-stretch in Bootstrap 4 to stretch gathered items on different screens.To stretch items on different screens −Stretch items on Small Screen   Work 1   Work 2   Work 3   Work 4   Work 5   Work 6 Stretch items on Medium Screen   Work 1   Work 2   Work 3   Work 4   Work 5   Work 6 Stretch items on Large Screen   Work 1   Work 2   Work 3   Work 4   Work 5   Work 6 Let us see an example to stretch gathered items on different screen size ...

Read More

Set key content with Bootstrap 4 card

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

Add key stuff to a Bootstrap card, using the bg-primary class with the card class.Use the bg-primary class in the card class −       Eisner Award   I have used the text-white class above, to set the text to be white.Let us see a example how to include key stuff in a Bootstrap 4 card −Example       Bootstrap Example                               Awards           The Pulitzer Prize               Eisner Award               Hugo & Nebula Awards      

Read More

Bootstrap Event when the modal is fully hidden

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

The hidden.bs.modal event in Bootstrap fires when the modal is completely hidden.Firstly, click on the hide button to hide the modal −$("#button1").click(function(){   $("#newModal").modal("hide"); }); After clicking the button, the hidden.bs.modal fires and generates an alert using the following script −$("#newModal").on('hidden.bs.modal', function () {   alert('The modal is completely hidden now!'); });Let us see an example to implement the hidden.bs.modal event −Example   Bootstrap Example               #button1 {     width: 140px;     padding: 20px;     bottom: 150px;     z-index: 9999;   ...

Read More

Bootstrap 4 Button .btn-outline-info class

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

To set an outline on a button that indicates information, you need to use the btn-outline-info class in Bootstrap.Include the button element and set the btn-outline-info class −   More Info You can try to run the following code to implement the btn-outline-info class −Example       Bootstrap Example                         Event   The following are the details:       Event Timings 1PM TO 4PM     Venue: 21 KH, HG Lane, Alabama     For more information about the event:   More Info

Read More

Add buttons in Bootstrap Navbar

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 3K+ Views

Add buttons using class .navbar-btn to elements. You can try to run the following code to add a button to the navbarExample           Bootstrap Example                                                       Example                                                                                                  Submit Button                         Navbar Button                    

Read More

Add bottom rounded corners to an element in Bootstrap 4

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

If you want to add rounded corners to an element, then use the rounded-bottom class.Use it on any element like −Above, we have set demo as well for class, for our div that is a rectangle.Here is our demo CSS class − .demo {   width: 110px;   height: 150px;   background-color: blue; } You can try to run the following code to add bottom rounded corners to an element −Example     Bootstrap Example               .demo {     width: 110px;     height: 150px;     background-color: blue;    }               Rectangle     We have a rectangles with rounded corners (bottom):      

Read More

Align flex items in the center on different screen sizes in Bootstrap

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

To align items in the center on different screen sizes, use the justify-content-*-center class.The aligned flex items would be like the following for small screen size −   GOLF   CRICKET   SQUASH The aligned flex items would be like the following for medium screen size −   GOLF   CRICKET   SQUASH The aligned flex items would be like the following for large screen size −   GOLF   CRICKET   SQUASH Let us see how to implement the justify-content-*-center −Example       Bootstrap Example                             Sports     Centered on small screen           GOLF       CRICKET       SQUASH         Centered on medium screen           GOLF       CRICKET       SQUASH         Centered on large screen           GOLF       CRICKET       SQUASH    

Read More

Bootstrap .nav-justified class

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

Make tabs or pills of equal widths as of their parent at screens wider than 768px using class .nav-justified along with .nav, .nav-tabs or .nav, .nav-pills respectively. On smaller screens, the nav links are stacked.Example           Bootstrap Example                                 Subjects                       Home             Team             Authors             MVPs              

Read More

Bootstrap 4 .flex-row-reverse class

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 1K+ Views

Use the flex-row-reverse class in Bootstrap to reverse the order of flex items. It also aligns the flex items to the right.Let us see the difference between the default arrangement of flex items and result of row-reverse class −For reversing the order of rows, we have used the flex-row-reverse class like the following code snippet:The following is an example to implement the flex-row-reverse class −Example       Bootstrap Example                             Flex     Flex Row Reverse           A-ONE       B-ONE       C-ONE         Flex Row             A-ONE       B-ONE       C-ONE  

Read More
Showing 29881–29890 of 61,297 articles
Advertisements