Found 700 Articles for Bootstrap

Style Bootstrap 4 card with bg-success class

Alex Onsman
Updated on 18-Jun-2020 10:59:10

281 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      

Style navigation pills inside the Bootstrap 4 card header

Alex Onsman
Updated on 18-Jun-2020 11:01:05

175 Views

To style navigation pills inside the card header in Bootstrap 4, use the card-header-pills class as shown below & minus;Set the navigation pills inside the header class in Bootstrap −             Clothing                 Electronics               Mobile Accessories       You can try to run the following code to implement the card-header-pills class in Bootstrap 4 −ExampleLive Demo       Bootstrap Example                             Products                                            Clothing                                      Electronics                                      Mobile Accessories                                         Clothing         We have Men and Women clothing line...              

Bootstrap 4 .flex-*-wrap class implementation

Alex Onsman
Updated on 18-Jun-2020 09:18:32

117 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

Wrap flex items in Bootstrap

Alex Onsman
Updated on 18-Jun-2020 09:26:38

170 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          

Set subtitle after a title in Bootstrap 4 card

Alex Onsman
Updated on 18-Jun-2020 09:29:03

533 Views

To set subtitle after a title in Bootstrap card, use the card-subtitle class.Let us see how −   Set Subtitle here Add the above after the card-title class and inside the card-body class −   Sports   Indoor   Squash, Dart, Chess You can try to run the following code to set subtitle in a Bootstrap card −ExampleLive Demo       Bootstrap Example                             Indoor Sports                   Sports         Indoor         Squash, Dart, Chess            

Bootstrap 4 .flex-*-fill class implementation

Amit Diwan
Updated on 18-Jun-2020 09:58:51

141 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      

Bootstrap 4 .rounded-right class

David Meador
Updated on 18-Jun-2020 08:52:14

166 Views

If you want to set rounded right corner to an element, then use the rounded-right class in Bootstrap 4.Adding it to the web page is not a tiresome task. Just add the class to div class −The one class above is used to set style for div − .one {   width: 200px;   height: 100px;   background-color: #00FF00;   margin: 8px; } You can try to run the following code to implement the rounded-right class −ExampleLive Demo       Bootstrap Example                             .one {        width: 200px;        height: 100px;        background-color: #00FF00;        margin: 8px;     }         Rounded Corner   We have a rectangle with right rounded corner:  

Bootstrap 4 .card-body class

David Meador
Updated on 18-Jun-2020 08:54:24

310 Views

To set the container for the Bootstrap card, you need to use the card-body class. It allows you to add contentThe following is the card-body class −   Body of the card And set the above inside the card class as shown in the following code snippet −   Body of the card. You can try to run the following code to implement the card-body class −ExampleLive Demo       Bootstrap Example                             Heading Three           Body of the card.      

Bootstrap hidden.bs.tooltip event

David Meador
Updated on 18-Jun-2020 08:56:19

157 Views

The hidden.bs.tooltip event in Bootstrap fires when the tooltip is hidden −$("[data-toggle='tooltip']").on('hidden.bs.tooltip', function(){   alert('Tooltip is completely hidden now.'); });The data-toggle attribute is set before as shown below −   Timings You can try to run the following code to implement the hidden.bs.tooltip event −ExampleLive Demo       Bootstrap Example                             Event     Here tooltip will be displayed using the "Show" buttpn and can be hidden using the "Hide" button.     Timings ... Read More

Create a grid of cards using Bootstrap 4 .card-deck class

David Meador
Updated on 18-Jun-2020 08:58:09

539 Views

Use the card-deck class in Bootstrap to form a grid of cards with equal width and height.Set the cards inside the following div −   Let us set the grid of cards now in the card-deck class −           Nothing new!   You can try to run the following code to implement the card-deck classExampleLive Demo       Bootstrap Example                               Demo Messages     Note: Resize the browser to check the effect.                             Nothing new!                                      Warning! Compile-time error!          Check again!                             We won!            

Advertisements