Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
CSS Framework Articles
Page 33 of 45
Add right rounded corners to an element in Bootstrap
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 MoreBootstrap .tooltip("toggle") method
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 MoreStretch a flex item in Bootstrap 4
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 Morehidden.bs.popover Bootstrap event
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 MoreOpen Bootstrap Modal
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 MoreBootstrap 4 .flex-row class
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 MoreBootstrap 4 .card-footer class
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 MoreAllow wrapping of flex items in Bootstrap on different screens
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 MoreBootstrap 4 .flex-*-row class implementation
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 MoreDisplay flex items horizontally on a specific screen size in Bootstrap
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