Bootstrap Articles

Page 30 of 49

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

Create a Bootstrap 4 card header

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

To create a card header in Bootstrap 4, use the card-header class. Set the header inside the card using the class −   Product List After adding the header, add the body of the card as shown in the following code snippet −Product List       Product One     Product Two   Let us see an example to learn how to create Bootstrap 4 card header −Example       Bootstrap Example                             Products           Product List           Product One       Product Two               This was the list of products in stock.      

Read More

Bootstrap 4 .border-warning class

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

Use the border-warning class in Bootstrap to set orange border to an element.To add orange border, set the div as −   Warning (Orange border) You can try to run the following code to implement the border-warning class −Example       Bootstrap Example                             .new {       width: 200px;       height: 150px;       margin: 10px;     }       The following is a Rectangle:   Warning (Orange border)

Read More

Style navigation tabs inside the Bootstrap 4 card header

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

To style navigation tab inside the card header in Bootstrap 4, use the .card-header-tabs and create navigation tabs like the below example −The following is an example to style navigation tabs inside the Bootstrap 4 card header −Example       Bootstrap Example                             IDE                                         Eclipse IDE                                 NetBeans IDE                                       Eclipse IDE Introduction         Eclipse is a widely used Java IDE.            

Read More

Align single rows of items from the start in Bootstrap 4

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

Use the .align-items-start in Bootstrap 4 to align single rows of items from the start.Set the align-items-start class −Add the flex items −   Product 1   Product 2   Product 3  Implementing align-items-start class to align single rows of items −Example       Bootstrap Example                           Align Flex Items on a single row       Product 1     Product 2     Product 3     Product 4    

Read More

Bootstrap 4 .card-header-pills class

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

Use the card-header-pills class in Bootstrap 4 to style navigation pills in card header.Set the navigation using the card-header-pills −The following is the code snippet to use the car-header-pills class with the na-pills class −                     Java                     C             The following is an example to implement the card-header-pills Bootstrap 4 class −Example       Bootstrap Example                             Programming                                         Java                                 C                                 C++                                       Java Installation         Download JAVA JDK from Oracle Java website and...              

Read More
Showing 291–300 of 489 articles
« Prev 1 28 29 30 31 32 49 Next »
Advertisements