David Meador has Published 164 Articles

Add a light grey background color to the Bootstrap 4 card

David Meador

David Meador

Updated on 17-Jun-2020 14:03:01

2K+ Views

To add a light grey background color to a card in Bootstrap, use the bg-light contextual class with the card class.To set light grey background, add it to the class −   Reduce size of images You can try to run the following code to add ligh grey background ... Read More

Align a flex item at the baseline in Bootstrap 4

David Meador

David Meador

Updated on 17-Jun-2020 13:57:23

182 Views

To align a flex item at the baseline in Bootstrap 4, use the .align-self-baseline class.Set the flex item at the baseline as shown below −   A-one   B-one   C-one   D-one You can try to run the following code to implement the align-self-baseline class in Bootstrap 4 −ExampleLive ... Read More

Bootstrap 4 .d-*-flex class

David Meador

David Meador

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

1K+ Views

Use the .d-*-flex class in Bootstrap to set a flexbox container on a screen size as shown below −d-flex d-sm-flex d-md-flex d-lg-flexAbove the flex is set for different screen sizes, for example, d-sm-flex = Flex for Small Screen Sized-md-flex = Flex for Medium Screen Sized-lg-flex = Flex for Large Screen Sized-xl-flex = ... Read More

Align single rows of items at the end on different screens in Bootstrap 4

David Meador

David Meador

Updated on 17-Jun-2020 13:08:20

59 Views

To align single rows of items at the end on different screens in Bootstrap 4, use the .align-items-*-end class.Align on different screen sizes −Medium Screen Size   Product 1   Product 2   Product 3   Product 4 Large Screen Size   Product 1   Product 2   Product 3 ... Read More

Align flex items in the center on different screen sizes in Bootstrap

David Meador

David Meador

Updated on 17-Jun-2020 12:58:53

2K+ Views

To align items in the center on different screen sizes, use the justify-content-*-center class.The aligned flex items would be like the following for small screen size −   GOLF   CRICKET   SQUASH The aligned flex items would be like the following for medium screen size −   GOLF   ... Read More

Bootstrap 4 Button .btn-outline-info class

David Meador

David Meador

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

107 Views

To set an outline on a button that indicates information, you need to use the btn-outline-info class in Bootstrap.Include the button element and set the btn-outline-info class −   More Info You can try to run the following code to implement the btn-outline-info class −ExampleLive Demo     ... Read More

hidden.bs.modal Bootstrap Event

David Meador

David Meador

Updated on 15-Jun-2020 19:02:53

4K+ Views

The hidden.bs.modal event in Bootstrap fires when the modal is completely hidden.Hide the modal on button click −$("#button1").click(function(){   $("#newModal").modal("hide"); });After you will hide it, use the hidden.bs.modal Bootstrap event to generate an alert before the modal completely hides −$("#newModal").on('hidden.bs.modal', function () {   alert('The modal is completely hidden now!'); ... Read More

Display flex items vertically on different screen sizes in Bootstrap 4

David Meador

David Meador

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

866 Views

To show flex items vertically on different screen sizes, use the flex-*- column class. For small, medium and large screen sizes, use it as −For Small screen size −For Medium screen size −For Large screen size −Let us see an example to learn how to set flex items vertically on ... Read More

Activate the content as a Bootstrap modal

David Meador

David Meador

Updated on 15-Jun-2020 18:52:21

415 Views

If you want to set content as a Bootstrap modal, then use the .modal(options) method.On button click, the modal generates as in the following script.$(document).ready(function(){   $("#button1").click(function(){     $("#newModal1").modal({backdrop: true});   }); });Above, I have set options as “backdrop:true”. Another option, we can set is “backdrop: true” −backdrop: true = ... Read More

Set a dark border to an element in Bootstrap

David Meador

David Meador

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

71 Views

If you want to set a dark border to an element, use the border-dark class.Spot the difference between a normal border and dark border −To add a dark border, you need to simply add it like any other class in div as shown below −   Dark Border Above, the ... Read More

Previous 1 ... 4 5 6 7 8 ... 17 Next
Advertisements