Web Development Articles

Page 726 of 801

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

Container to create a grid of Bootstrap 4 cards

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 601 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

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

Align an element with the top of the parent element's font in Bootstrap 4

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

Use align-text-top class to align an element with the top of the parent element's font.Set the align-text-top class as −   Top Text You can try to run the following code to implement the align-text class in Bootstrap 4 −Example       Bootstrap Example                         Example   This is demo text   Demo Baseline   Top Alignment   Top Text   Bottom Text

Read More

Style Bootstrap 4 cards with bg-danger class

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

To color Bootstrap cards, we use the contextual classes.For danger action, use the bg-danger contextual class with the card class −   Danger! High Voltage! You can try to run the following code to implement the card-danger class −Example       Bootstrap Example                             Messages           How you doing?              Danger! High Voltage!      

Read More

Display flex items vertically and reversed in Bootstrap 4

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

The flex-column-reverse is used to display reversed flex items with vertical orientation. Add the flex-column-reverse class as in the following code snippet −After that, add flex items inside it −   Demo 1   Demo 2   Demo 3 You can try to run the following code to show flex items vertically and reversed −Example       Bootstrap Example                             Implementing Column Reverse           Demo 1         Demo 2       Demo 3      

Read More

Bootstrap 4 .flex-*-column-reverse class

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

Use the flex-*-column-reverse class to display flex items vertically and reversed on different screen sizes.Here’s the example of reversing flex items on medium device using “flex-md-column-reverse” class −   One   Two   Three In the same way, set for large devices using “flex-lg-column-reverse” class −   One   Two   Three Implementing the .flex-*-column-reverse class −Example       Bootstrap Example                             Example     Change the browser size to see the effect:     Default           One       Two       Three         Flex on differet screen size (Medium-Reverse)           One       Two       Three         Flex on different screen size (Large-Reverse)           One       Two       Three      

Read More

Set a grey border to an element in Bootstrap 4

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

Set a grey border to an element, using the border-secondary class in Bootstrap 4.Add it like the following example − I have also included the “mystyle” class to style the div − .mystyle {   width: 250px;   height: 150px;   margin: 10px; } Let us see an example to implement the border-secondary class −Example       Bootstrap Example                             .mystyle {       width: 250px;       height: 150px;       margin: 10px;      }           Shape   Rectangle with gray border

Read More

Container to create a grid of Bootstrap 4 cards of equal height and width

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

Set a container of cards, using the card-deck class.Work it inside the following div that would be of equal width and height −         You can try to run the following code to implement the card-deck class −Example       Bootstrap Example                             Demo Messages     Note: Resize the browser to check the effect.                           Nothing new!                            Warning! Compile-time error!          Check again!                            We won!            

Read More

Style Bootstrap 4 cards with bg-dark class

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

Use the bg-dark contextual class in Bootstrap 4 to add a gray background to a card −In the below code snippet, I have used the bg-dark class to style the Bootstrap card. With that, I have also the text-while class to set the text to be white −   This is it! Let us see the complete example to work with bg-dark class −Example       Bootstrap Example                             Notification            This is it!               How you doing?      

Read More
Showing 7251–7260 of 8,010 articles
« Prev 1 724 725 726 727 728 801 Next »
Advertisements