Amit Diwan has Published 109 Articles

Bootstrap show.bs.popover event

Amit Diwan

Amit Diwan

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

107 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       ... Read More

Show flex items horizontally in Bootstrap

Amit Diwan

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 .tooltip("hide") method

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 15:15:09

2K+ Views

Use the tooltip(“hide”) method in Bootstrap to hide the tooltip. The tooltip hides on button click as shown below −$(".btn-default").click(function(){   $("[data-toggle='tooltip']").tooltip('hide'); });Above the data-toggle attribute can be seen which we set before on element. Now the toggle will generate from the link when the button is clicked − ... Read More

Bootstrap 4 .card-img-overlay class

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 15:13:25

450 Views

Use the card-img-overlay class to turn an image into a Bootstrap 4 card background and set the image using the element and the card-img-top class −After that, use the card-img-overlay class −   Avro   Tutorial for Apache Avro   Learn You can try to run the following code ... Read More

Add right rounded corners to an element in Bootstrap

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 15:11:13

101 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: ... Read More

Stretch single rows of items on different screens in Bootstrap 4

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 14:55:42

60 Views

Use .align-items-*-stretch class to stretch single rows of items on different screens in Bootstrap 4.Stretch single rows if items on specific screen sizes as shown below:Small Screen Size Medium Screen Size Large Screen Size Extra Large Screen Size Let us implement the align-items-*-stretch class in Bootstrap 4 −ExampleLive Demo ... Read More

Bootstrap 4 Button .btn-outline-danger class

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 14:50:48

234 Views

To set an outline on a button that indicates danger, you need to use the btn-outline-danger class in Bootstrap.Set the outline in the element −   Danger Ahead You can try to run the following code to implement the btn-outline-danger class −ExampleLive Demo       Bootstrap Example                             Danger Button     Danger Ahead  

Remove the right border from an element in Bootstrap

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 14:46:16

78 Views

Remove the right border from an element; use the border-right-0 class.To remove the border −   Rectangle is not having the right border. You can try to run the following code to implement the border-right-0 class −ExampleLive Demo       Bootstrap Example         ... Read More

Bootstrap 4 .rounded-left class

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 14:41:22

222 Views

To set rounded left corners to an element, use the rounded-left class in Bootstrap 4.Use the class on any element like − We have also included the one class to style our −.one {   width: 200px;   height: 100px;   background-color: maroon;   margin: 8px; }Let us ... Read More

Bootstrap hide.bs.tab event

Amit Diwan

Amit Diwan

Updated on 17-Jun-2020 14:34:43

1K+ Views

The hide.bs.tab fires when the tab is about to be hidden in Bootstrap.Fire the hide.bs.tab and generate the alert before the modal is hidden −$('.nav-tabs a').on('hide.bs.tab', function(e){   alert('Previous tab will hide now!'); });The first tab is the active tab and fade in property is also set −   Home ... Read More

Advertisements