Ricky Barnes has Published 127 Articles

Bootstrap 4 .float-right class

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 12:12:18

10K+ Views

Use the float-right class in Bootstrap to place an element on the right.The default text alignment is on the left and use the float-right class to align text on the right as in the following code snippet −   This text is on the right. It can be used on ... Read More

bg-light class for Bootstrap 4 cards

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 12:09:51

280 Views

To set a light grey background for the Bootstrap 4 cards, use the bg-light class.Use “card bg-light” like any other class in Bootstrap −   Image Editor The above gives a light grey background to the Bootstrap card.Let us see an example of the card-light class −ExampleLive Demo   ... Read More

Bootstrap 4 .card-link class

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 12:03:28

460 Views

Use the card-link class to add a hover effect and blue color to any link in a card.The following is a code snippet showing three links with hover effect using the card-link class in Bootstrap 4 −   Website Development   App Development (iOS)   App ... Read More

Stretch a flex item on different screens in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 17-Jun-2020 11:18:03

61 Views

To stretch a flex item on different screens in Bootstrap 4, use the .align-self-*-stretch class.To strect in on different screens, you need to use align-self-sm-stretch, align-self-md-stretch, align-self-lg-stretch, etc. Below is an example for small screen size −   A-one   B-one   C-one   D-one You can try to run ... Read More

Bootstrap 4 .flex-*-column-reverse class

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 12:30:39

683 Views

Use the flex-*-column-reverse class to display flex items vertically and reversed on different screen sizes.Here’s the example of reversing flex items on medium device using “flex-md-column-reverse” class −   One   Two   Three In the same way, set for large devices using “flex-lg-column-reverse” class −   One   Two ... Read More

Set a grey border to an element in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 12:28:08

328 Views

Set a grey border to an element, using the border-secondary class in Bootstrap 4.Add it like the following example − I have also included the “mystyle” class to style the div − .mystyle {   width: 250px;   height: 150px;   margin: 10px; } Let us see an example to ... Read More

Display flex items vertically and reversed in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 11:14:29

67 Views

The flex-column-reverse is used to display reversed flex items with vertical orientation. Add the flex-column-reverse class as in the following code snippet −After that, add flex items inside it −   Demo 1   Demo 2   Demo 3 You can try to run the following code to show flex ... Read More

Align gathered items from the start in different screens in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 11:10:41

53 Views

To align gathered items from the start in different screens, use the .align-content-*-start class.Align the items as shown below in different screen sizes −Medium Screen Size   Work 1   Work 2   Work 3   Work 4   Work 5 Large Screen Size   Work 1   Work 2 ... Read More

Set positive success action with green outlined Bootstrap 4 Button

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 11:06:38

77 Views

To set an outline on a button that indicates positive action, you need to use the btn-outline-success class in Bootstrap.Here is how you can set it:   More (Green Outline) You can try to run the following code to implement the btn-outline-success class −ExampleLive Demo       ... Read More

Align gathered items at the end in Bootstrap 4

Ricky Barnes

Ricky Barnes

Updated on 16-Jun-2020 10:58:08

166 Views

Use .align-content-end class to align gathered items at the end in Bootstrap 4.To set the items at the end −

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