Amit Diwan has Published 103 Articles

Align single rows of items at the end in Bootstrap 4

Amit Diwan

Amit Diwan

Updated on 16-Jun-2020 08:16:01

182 Views

To align single rows of items at the end, use the .align-items-end class in Bootstrap 4.Align using the align-items-end class −Now add the flex items to align single rows of items −   Product 1   Product 2   Product 3 Let us see an example to align single rows ... Read More

shown.bs.popover Bootstrap event

Amit Diwan

Amit Diwan

Updated on 16-Jun-2020 08:09:13

1K+ Views

The shown.bs.popover event fires when the popover is completely visible.Firstly, display the popover on button click using the following code −$(".btn-default").click(function(){   $("[data-toggle='popover']").popover('show'); });After that, fire the popover shown.bs.popover event and generate alert −$("[data-toggle='popover']").on('shown.bs.popover', function(){   alert('Popover is completely visible!'); });You can try to run the following code to implement ... Read More

Implement .popover("toggle") method in Bootstrap

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 19:18:26

193 Views

To toggle the popover on button click, use the popver(“toggle”) method.Set the popover toggle as −$(document).ready(function(){   $(".btn-default").click(function(){     $("[data-toggle='popover']").popover('toggle');   }); });On button click, the popover generates −   (Course) Toggle Popover The popver, on button click, generates the popover on a link −   Learn The following ... Read More

Align a flex item at the baseline on different screens in Bootstrap 4

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 19:13:04

59 Views

Use the .align-self-*-start class to align a flex item at the baseline on different screens in Bootstrap 4.On different screen sizes, set the baseline as −Small Screen   A-one   B-one   C-one   D-one Medium Screen   A-one   B-one   C-one   D-one Large Screen   A-one   ... Read More

Align single rows of items from the start on different screens in Bootstrap 4

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 19:06:14

57 Views

Use the .align-items-*-start class in Bootstrap 4 to align single rows of items from the start on different screens.For different screen size, use the class as −Align Single Rows of Items on Small Screen   Product 1   Product 2   Product 3   Product 4 Align Single Rows of ... Read More

Hide Bootstrap Modal

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 18:46:03

1K+ Views

The .modal(“hide”) method hides the modal on button click.Firstly, generate the modal and display it −$("#newModal").modal("show");After that, use the modal(“hide”) method on a button to hide the modal on button click −$("#button1").click(function(){   $("#newModal").modal("hide"); });Let us see an example of the modal(‘hide”) method wherein we are hiding a modal which ... Read More

Align single rows of items at the baseline in Bootstrap 4

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 18:43:33

100 Views

Align single rows of items at the baseline in Bootstrap 4, use the .align-items-baseline class.To align at the baseline:

hide.bs.modal Bootstrap Event

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 17:52:24

479 Views

The hide.bs.modal event in Bootstrap fires when the modal is about to be hidden.The following button hides the modal −   Click to hide Just after clicking the hide button, the hide.bs.modal event fires and before the modal is hidden.  Here is the script for the hide.bs.modal event:$("#newModal").on('hide.bs.modal', function () ... Read More

Bootstrap 4 .rounded-circle class

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 16:37:19

7K+ Views

To create a rounded circle with Bootstrap, use the rounded-circle class.Add the rounded-circle class in the Above, we also have a test class, which is a CSS class to style the circle −.test {   width: 270px;   height: 320px;   background-color: yellow; }You can try to run the ... Read More

Bootstrap 4 .card-text class

Amit Diwan

Amit Diwan

Updated on 15-Jun-2020 16:31:04

253 Views

Use the card-text class in Bootstrap to set text in a card. Add this class in your web page  by including it as any other class in an element, for example, tag in the below given code snippet −   Demo text in a card The text in the ... Read More

Advertisements