Found 626 Articles for CSS Framework

Show flex items right aligned and horizontally in Bootstrap

Amit Diwan
Updated on 18-Jun-2020 08:00:01

95 Views

If you want to display flex items right aligned, horizontally and reversed, then use the flex-row-reverse class.Use the class like the following code snippet −   ONE   TWO   THREE The following is an example to show reverse order of flex items −ExampleLive Demo       Bootstrap Example                             Flex     Flex Row Reverse           ONE       TWO       THREE         Flex Row           ONE       TWO       THREE      

Show flex items horizontally in Bootstrap

Amit Diwan
Updated on 18-Jun-2020 07:12:02

129 Views

To show flex items horizontally, use the flex-row class.Add it to class −Now add flex items accordingly −   TCS   Wipro   Accenture   Gartner Here is the complete example to implement the flex items horizontally −ExampleLive Demo       Bootstrap Example                             Companies           TCS       Wipro       Accenture       Gartner      

Bootstrap show.bs.popover event

Amit Diwan
Updated on 18-Jun-2020 07:13:48

109 Views

The show.bs.popover event fires when the popover is about to be visible.Fire the popover event −$("[data-toggle='popover']").on('show.bs.popover', function(){   alert('Popover is about to be visible!'); });You can try to run the following code to implement the show.bs.popover event −ExampleLive Demo       Bootstrap Example                             Awards           Here's the list:       List           $(document).ready(function(){     $(".btn-default").click(function(){       $("[data-toggle='popover']").popover('show');     });     $("[data-toggle='popover']").on('show.bs.popover', function(){       alert('Popover is about to be visible!');     });   });

Display flex items horizontally on a specific screen size in Bootstrap

Amit Diwan
Updated on 18-Jun-2020 07:15:45

350 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 −ExampleLive Demo       Bootstrap Example                             Flex   ... Read More

Bootstrap .popover("show") method

Amit Diwan
Updated on 18-Jun-2020 07:18:57

867 Views

Display the popover using the popver(“show”) method.You need to set the popover as −   Sample Now display the popover −$(document).ready(function(){   $(".btn-default").click(function(){     $("[data-toggle='popover']").popover('show');   }); });Let us see the complete example display how to implement the popover(“show”) method −ExampleLive Demo       Bootstrap Example                             Demo     Sample           The following is a demo button:       Demo Button           $(document).ready(function(){     $(".btn-default").click(function(){       $("[data-toggle='popover']").popover('show');     });    });

Bootstrap 4 .flex-*-row class implementation

Amit Diwan
Updated on 18-Jun-2020 07:21:43

108 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 −ExampleLive Demo       Bootstrap Example                       ... Read More

Bootstrap 4 .card-footer class

Amit Diwan
Updated on 18-Jun-2020 07:23:31

921 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 −ExampleLive Demo       Bootstrap Example                             Conference           Details       Timings: 4PM - 8PM       Reach before 4PM      

Toggle Bootstrap Modal

Amit Diwan
Updated on 18-Jun-2020 07:25:35

349 Views

Use the .modal(“toggle”) method in Bootstrap to toggle the modal.On button click, the modal generates using the modal(“toggle”) method −$(document).ready(function(){   $("#button1").click(function(){     $("#newModal").modal("toggle");   }); });The button is set here using the following code snippet −   Modal One You can try to run the following code to implement the modal(“toggle”) method −ExampleLive Demo       Bootstrap Example                             Sample     Modal One                                         ×             Sample Modal                             Click outside to close it.                           Close                       $(document).ready(function(){     $("#button1").click(function(){       $("#newModal").modal("toggle");     });   });

Bootstrap 4 .flex-row class

Amit Diwan
Updated on 18-Jun-2020 07:27:40

205 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 −ExampleLive Demo       Bootstrap Example                             Flex Row          Audi      BMW      Benz      

Allow wrapping of flex items in Bootstrap on different screens

Alex Onsman
Updated on 18-Jun-2020 07:29:27

854 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 −ExampleLive Demo       Bootstrap Example                                       ... Read More

Previous 1 ... 7 8 9 10 11 ... 63 Next
Advertisements