CSS Framework Articles

Page 35 of 45

Style Bootstrap 4 card with bg-warning class

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

Use the bg-warning class with the card class in Bootstrap to set warning action on a Bootstrap card.Set warning messages like −Do not cross! High Voltage!Use the below code to style a Bootstrap card −   You are trespassing on private property! You can try to run the following code to style Bootstrap card with the bg-warning class −Example       Bootstrap Example                             Warning           You are trespassing on private property!      

Read More

Wrap flex items in reversed order in Bootstrap

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

To wrap flex items in reverse order, you need to use the flex-wrap-reverse class in Bootstrap.To wrap reverse flex items, use the flex-wrap-reverse class −Now add the flex items accordingly −   Rank 1   Rank 2   Rank 3   Rank 4 Let us see an example to implement the flex-wrap-reverse class −Example       Bootstrap Example                                   Wrap       Flex Wrap               Rank 1         Rank 2         Rank 3         Rank 4         Rank 5         Rank 6         Rank 7         Rank 8         Rank 9         Rank 10         Rank 11         Rank 12         Rank 13         Rank 14         Rank 15         Rank 16         Rank 17         Rank 18         Rank 19         Rank 20             Flex Wrap - Reverse               Rank 1         Rank 2         Rank 3         Rank 4         Rank 5         Rank 6         Rank 7         Rank 8         Rank 9         Rank 10         Rank 11         Rank 12         Rank 13         Rank 14         Rank 15         Rank 16         Rank 17         Rank 18         Rank 19         Rank 20            

Read More

Bootstrap .card class

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

To create a card in Bootstrap, use the .card class and add card body as well −   Basic card You can also set the Bootstrap card title and card footer using the card-title and card-title class respectively.The following is the code to create a Bootstrap card −Example       Bootstrap Example                          Demo Card          This is the body of the card.    

Read More

Show flex items right aligned and horizontally in Bootstrap 4 on a specific screen size

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

To show flex items on the right, horizontal on specific screen sizes, use the flex-*-row-reverse class in Bootstrap 4.Let us see how to set reverese flex items on different screen sizes −Small Screen Size: flex-sm-row-reverse Medium Screen Size: flex-md-row-reverse Large Screen Size: flex-lg-row-reverseYou can try to run the following code to display reverse flex items on different screen sizes −Example       Bootstrap Example                                   Flex Row               ONE         TWO         THREE             Flex Row Reverse               ONE         TWO         THREE             Flex Row Reverse (Small Width)                 ONE         TWO         THREE             Flex Row Reverse (Medium Width)               ONE         TWO         THREE             Flex Row Reverse (Large Width)               ONE         TWO         THREE          

Read More

Float an element to the left on different screens with Bootstrap

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

On different devices like small, medium, large, etc, if you want to float an element to the left, then use the float-*-left class.The following are the classes you can use −Small Devices: float-sm-left Medium Devices: float-md-left Large Devices: float-lg-leftLet us see an example to float an element to the left on different screens −Example       Bootstrap Example                             Demo           This text is on the left (on small screen).       This text is on the left (on medium screen).       This text is on the left (on large screen).       This text is on the left (on extra large screen).      

Read More

Wrap flex items in reversed order in Bootstrap on different screens

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

To wrap flex items in reverse order on different screen sizes, you need to use the flex-*wrap-reverse class.The class gives options to reverse and wrap flex items on small, medium, large, and extra large screen sizes −Small Screen Size (flex-sm-wrap-reverse)   Goal 1   Goal 2   Goal 3   Goal 4   .   .   . Large Screen Size (flex-lg-wrap-reverse)   Goal 1   Goal 2   Goal 3   Goal 4   .   .   . You can try to run the following code to work with flex-*wrap-reverse class −Example   Bootstrap ...

Read More

Bootstrap 4 .float-none class

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

If you want to remove float from an element, then Bootstrap 4 has a class called float-none.This removes the float −   This text is on the left (float removed). Default is left. On setting the float-none class, the text moves on the left, which is laso the default alignment settings.You can try to run the following code to implement the float-none class −Example   Bootstrap Example             Demo       This text is on the left (on small screen).   ...

Read More

Float an element to the right on different screens with Bootstrap

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

Use the float-*-right class in Bootstrap to float an element to the right. Different screen size includes setting the float for small, medium, large and extra large sizes.Let us see how to float and element to the right on small and medium size screen size −Small Screen Size   This text is on the right (on small screen). Medium Screen Size   This text is on the right (on medium screen). Let us see how to place an element on the right on different screens −Example   Bootstrap Example           ...

Read More

Set less important content with Bootstrap 4 card

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

To set less important stuff in Bootstrap, use the card class with the bg-secondary contextual class as shown below −Set the card body as well using the card-body class −   Fitness Trackers Let us see how to set a card with less important content −Example       Bootstrap Example                             Fitness Products           Fitness Trackers               Heart Rate Monitors      

Read More

Bootstrap 4 Button .btn-outline-secondary class

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

Use the btn-outline-seondary class to set a grey outline in Bootstrap 4 to show less important information.The following is the code to set Bootstrap button to add grey outline −   More Let us see how to implement the btn-outline-secondary class −Example       Bootstrap Example                         Tools   The following are the tools:       Online Compiler     Image Editor     Image Optimizer     Whiteboard     For more tools, click below:   More

Read More
Showing 341–350 of 445 articles
« Prev 1 33 34 35 36 37 45 Next »
Advertisements