Bootstrap Articles

Page 7 of 49

Style Bootstrap 4 card with bg-success class

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 396 Views

To set positive action to a card in Bootstrap, use the bg-success class with the card classSet positive action and use “card bg-success” −Now add the body of the card using the card-body class −   India won by 7 wickets You can try to run the following code to implement the card-success class −ExampleLive Demo         Bootstrap Example                             Result     Result of the first two matches between India and Australia:           India won by 10 runs               India won by 7 wickets      

Read More

Align flex items from everywhere in Bootstrap

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 193 Views

Use the .justify-content-* class in Bootstrap to align flex items from start, end, center, between, etc.For justify-content-start, the justified flex items would be aligned like −For justify-content-end, the justified flex items would be aligned like −For justify-content-around, the justified flex items would be aligned like −Let us see how to justify content −ExampleLive Demo   Bootstrap Example                       Rank 1       RANK 2       RANK3               RANK 1       RANK 2       RANK 3               RANK 1       RANK 2       RANK 3      

Read More

Bootstrap 4 .flex-column-reverse class implementation

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 194 Views

Reverse the order of flex items using the flex-column-reverse class in Bootstrap 4.Set the flex-column-reverse class as shown below −Add the flex items to include in your Bootstrap 4 −   Demo 1   Demo 2   Demo 3 The following is an example to implement the flex-column-reverse class −ExampleLive Demo       Bootstrap Example                             Implementing Column Reverse           Demo 1       Demo 2       Demo 3      

Read More

Bootstrap 4 .justify-content-*-around class

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 462 Views

Use the justify-content-*-around class in Bootstrap to align flex items around on different screen sizes −justify-content-sm-around : Justify content on small screen size justify-content-md-around : Justify content on medium screen size justify-content-lg-around : Justify content on large screen sizeFor an example, let us see how to align flex items for medium screen device (justify-content-md-around) −   RANK 1   RANK 2   RANK 3 You can try to run the following code to implement the justify-content-* −ExampleLive Demo       Bootstrap Example                                   RANK 1       RANK 2       RANK 3               RANK 1       RANK 2       RANK 3               RANK 1       RANK 2       RANK 3               RANK 1       RANK 2       RANK 3      

Read More

Bootstrap 4 .flex-*-fill class implementation

Amit Diwan
Amit Diwan
Updated on 18-Jun-2020 260 Views

Use the flex-*-fill class to set the flex items to have equal width on different screens as shown in the below code snippet −For Small Width Screen   A   B   C For Medium Width Screen   A   B   C The following is an example to implement the flex-*fill class −ExmapleLive Demo       Bootstrap Example                                 Flex (Small Width)           A       B       C         Flex (Medium Width)           A       B       C         Flex (Large Width)           A       B       C      

Read More

Wrap flex items in Bootstrap

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 305 Views

If you want to wrap flex items in Bootstrap, then use the flex-wrap class. To wrap, use −       India   US   UK   Australia   Denmark You can try to run the following code to avoid wrapping of flex items −ExampleLive Demo       Bootstrap Example                             Flex Examples     Wrap - Yes           India       US       UK       Australia       Denmark       India       Poland       Netherlands       Ireland       Brazil       Russia       Morocco         Wrap - No           India       US       UK       Australia       Denmark       India       Poland       Netherlands       Ireland       Brazil       Russia       Morocco          

Read More

Bootstrap 4 .flex-*-wrap class implementation

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 240 Views

Use the flex-*-wrap class like flex-lg-wrap, flex-sm-wrap, flex-md-wrap, etc to wrap flex items on different screen sizes −The following is the code snippet for the flex items wrap on small screen size using the flex-sm-wrap class −   Poland   Netherlands   Ireland   Brazil You can try to run the following code to implement the flex-*-wrap class in Bootstrap 4 −ExampleLive Demo       Bootstrap Example                             Flex Examples     Wrap - Yes   ...

Read More

Bootstrap 4 .float-none class

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 488 Views

If you want to remove float from an element, then Bootstrap 4 has a class called float-none.This removes the float −   This text is on the left (float removed). Default is left. On setting the float-none class, the text moves on the left, which is laso the default alignment settings.You can try to run the following code to implement the float-none class −ExampleLive Demo   Bootstrap Example             Demo       This text is on the left (on small screen). ...

Read More

Float an element to the left on different screens with Bootstrap

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 173 Views

On different devices like small, medium, large, etc, if you want to float an element to the left, then use the float-*-left class.The following are the classes you can use −Small Devices: float-sm-left Medium Devices: float-md-left Large Devices: float-lg-leftLet us see an example to float an element to the left on different screens −ExampleLive Demo       Bootstrap Example                             Demo           This text is on the left (on small screen).       This text is on the left (on medium screen).       This text is on the left (on large screen).       This text is on the left (on extra large screen).      

Read More

Bootstrap .card class

Alex Onsman
Alex Onsman
Updated on 18-Jun-2020 365 Views

To create a card in Bootstrap, use the .card class and add card body as well −   Basic card You can also set the Bootstrap card title and card footer using the card-title and card-title class respectively.The following is the code to create a Bootstrap card −ExampleLive Demo       Bootstrap Example                          Demo Card          This is the body of the card.    

Read More
Showing 61–70 of 489 articles
« Prev 1 5 6 7 8 9 49 Next »
Advertisements