CSS Framework Articles

Page 33 of 45

Add right rounded corners to an element in Bootstrap

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

Use the rounded-right class in Bootstrap 4 to add right rounded corners to an element.Just set the class to be rounded-right to an element like below −Here, another class “one” is also set to style the element − .one {   width: 250px;   height: 120px;   background-color: #265C80;   margin: 20px; } Let us see an example to set right rounded corners to a rectangle −Example       Bootstrap Example                             .one {       width: 250px;       height: 120px;       background-color: #265C80;       margin: 20px;     }             Rounded Corner       We have a rectangle with right rounded corner:      

Read More

Bootstrap .tooltip("toggle") method

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

Use the tooltip(“toggle”) method in Bootstrap to togle the tooltip.The tooltip generates on clicking the button shown below −   Toggle Tooltip Toggle the tooltip on button click like the following code snippet −$(".btn-info").click(function(){   $("[data-toggle='tooltip']").tooltip('toggle'); });You can try to run the following code to implement the tooltip(“toggle”) method −Example       Bootstrap Example                             Demo     Tooltip will be visible here          Show Tooltip      Hide Tooltip      Toggle Tooltip           $(document).ready(function(){     $(".btn-primary").click(function(){       $("[data-toggle='tooltip']").tooltip('show');     });   $(".btn-default").click(function(){     $("[data-toggle='tooltip']").tooltip('hide');   });   $(".btn-info").click(function(){     $("[data-toggle='tooltip']").tooltip('toggle');   }); });

Read More

Stretch a flex item in Bootstrap 4

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

To stretch a flex item in Bootstrap 4, use the .align-self-stretch class.     Here, the 2nd flex item is stretched using the align-self-stretch class in Bootstrap −   A-one   B-one   C-one   D-one You can try to run the following code to stretch a flex item −Example       Bootstrap Example                           Align Specific Flex Item and Stretch         A-one       B-one       C-one       D-one    

Read More

hidden.bs.popover Bootstrap event

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

The hidden.bs.popover event fires when the popover is completely hidden.Fire the popover event −$("[data-toggle='popover']").on(hidden.bs.popover', function(){   alert('The Popover is now hidden!'); });You can try to run the following code to implement the hidden.bs.popover event −Example       Bootstrap Example                             Awards           Here's the list:       List (Display)       List (Hide)             $(document).ready(function(){     $(".btn-primary").click(function(){ ...

Read More

Open Bootstrap Modal

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

The modal(“show”) method opens a Bootstrap modal as shown below −$("#newModal").modal("show");When the following button is clicked, the modal is displayed −   Click to hide Let us see an example of modal(“show”) method to open a Bootstrap Modal −Example       Bootstrap Example                             #button1 {      width: 140px;      padding: 20px;      bottom: 150px;      z-index: 9999;      font-size: 15px;      position: absolute;      margin: 0 auto;    }   ...

Read More

Bootstrap 4 .flex-row class

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

Use the flex-row class in Bootstrap to dispay flex items horizontally.Achieve the following using the flex-row class −Now add the flex-items in the class to allow horizontal alignment −   Audi   BMW   Benz You can try to run the following code to implement the flex-row class −Example       Bootstrap Example                             Flex Row          Audi      BMW      Benz      

Read More

Bootstrap 4 .card-footer class

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

Use the card-footer class in Bootstrap 4 to set the footer of a Bootstrap card.Add it using the class −   Add footer message here The card-footer class comes after the card-header and card-body class −   Details   Timings: 4PM - 8PM   Reach before 4PM You can try to run the following code to implement the card-footer class −Example       Bootstrap Example                             Conference           Details       Timings: 4PM - 8PM       Reach before 4PM      

Read More

Allow wrapping of flex items in Bootstrap on different screens

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

To allow wrapping of flex items on different screens, use the flex-*-wrap class. The flex-wrap for varied screen sizes work for small, medium, large and extra large screens.For example, use the flex-lg-wrap class to wrap flex items on large screen −For small screen −You can try to run the following code to implement the flex-*-wrap class to wrap flex items on small and large screen size −Example       Bootstrap Example                                         ...

Read More

Bootstrap 4 .flex-*-row class implementation

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

To set flex items horizontally for different screen sizes like large, small, medium, etc, use the flex-*-row class.Let us see which flex-*-row class is used for different screen sizes −Small Screen Size: flex-sm-row Medium Screen Size: flex-md-row Large Screen Size: flex-lg-rowThe following is an example to set flex items horizontally for small screen size −   Audi   BMW   Benz You can try to run the following code to implement .flex-*-row class in Bootstrap 4 −Example       Bootstrap Example                       ...

Read More

Display flex items horizontally on a specific screen size in Bootstrap

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

To set flex item horizontally in different screen size, use the flex-*-row class.The varied screen sizes is set for small, medium, large and extra large screen size. Let us see how to align flex items horizontally for small screen size −Flex Row (Small Screen)   Audi   BMW   Benz The following is an example to display flex items horizontally on different screen size −Example       Bootstrap Example                             Flex     ...

Read More
Showing 321–330 of 445 articles
« Prev 1 31 32 33 34 35 45 Next »
Advertisements