Bootstrap Articles

Page 31 of 49

Set light grey outlined Bootstrap 4 Button

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 356 Views

To set an outline on a button that is of light grey color, you need to use the btn-outline-light class in Bootstrap.Use the class as −   Sample You can try to run the following code to implement the btn-outline-light class −Example       Bootstrap Example                       Demo Button A light colored button is visible below:   Sample

Read More

Turn an image into a Bootstrap 4 card background

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 4K+ Views

Use the card-img-overlay class to turn an image into a card background.You need to first set the element and then use the card-img-overlay class as in the following code snippet −         Avro     Tutorial for Apache Avro     Learn   Let us see an example to learn how to turn an image into a Bootstrap card background −Example       Bootstrap Example                         Apach - Tool for Hadoop                 Avro       Tutorial for Apache Avro       Learn      

Read More

Bootstrap 4 .card-img-top class

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 881 Views

Use the card-img-top class in Bootstrap to set the image at the top inside a card −After that add the card and card body −   Swift 4   Learn Swift 4   Begin You can try to run the following code to implement the card-img-top class in Bootstrap 4 −Example       Bootstrap Example                             SWIFT 4 Tutorial     Video Tutorial on Switft 4                         Swift 4         Learn Swift 4         Begin            

Read More

Bootstrap 4 .border-white class

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 234 Views

To set white border to an element, use the border-white class.Add white border −   This has white border Above, I have also added a style to set the div element −.mystyle {   width: 200px;   height: 100px;   margin: 10px;   background: blue; }Let us see an eample to implement the border-white class in Bootstrap −Example       Bootstrap Example                             .mystyle {       width: 200px;       height: 100px;       margin: 10px;       background: blue;     }         The following are two Rectangles:   This has white border   This has orange border

Read More

Add information with Bootstrap 4 card

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 185 Views

To add information to a card in Bootstrap 4, use the bg-info class.Use the card class with the bg-info class:Add the card body after that using the card-body class −   Demo Text You can try to run the following code to add information −Example       Bootstrap Example                         Festival Celebration       Reach till 5PM  

Read More

Set warning action with orange outlined Bootstrap 4 Button

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 274 Views

Set orange outline for a Bootstrap 4 button, using the btn-outline-warning class and indicate warning action.The following includes the orange outline on a button −   Rejected The class is added just as any other class added to any element in Bootstrap.  For a Bootstrap button, I used the element.You can try to run the following code to implement the btn-outline-warning class −Example       Bootstrap Example                       College Placements   Selected Students   Rejected Students   Result Awaited List of selected and rejected students: Selected Rejected

Read More

Remove float from an element in Bootstrap

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 466 Views

Use the float-none class in Bootstrap to remove float from an element.The default for a text is always left; therefore removing float will place the text on the left −You can try to run the following code to remove float from an element −Example       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 (float removed).       This text is on the left (on extra large screen).       This text is on the left (float removed).    

Read More

Set blue outlined Bootstrap 4 Button

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 171 Views

To set blue outlined Bootstrap 4 button, use the .btn-outline-primary class.Add a blue outline to a button −   Blue outline You can try to run the following code to implement the btn-outline-primary class in Bootstrap −Example       Bootstrap Example                             Bootstrap 4     You can see blue outline below:     Blue outline

Read More

Stretch a flex item on different screens in Bootstrap 4

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 183 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 the following code to stretch a flex item on different screen sizes −Example       Bootstrap Example                             Align Specific Flex Item and Stretch           A-one       B-one       C-one       D-one       Small Screen Size       A-one     B-one     C-one     D-one     Medium Screen Size         A-one     B-one     C-one     D-one     Large Screen Size         A-one     B-one     C-one     D-one      

Read More

Bootstrap 4 Button .btn-outline-light class

Ricky Barnes
Ricky Barnes
Updated on 11-Mar-2026 230 Views

Use the btn-outline-light class in Bootsrap 4 to set light grey outlined button.To include it on the web page, set it as a class in the element as shown in the following code snippet −Let us see an example to implement the btn-outline-light class −Example       Bootstrap Example                         Demo Button   Below is a light grayed outline button:       Sample  

Read More
Showing 301–310 of 489 articles
« Prev 1 29 30 31 32 33 49 Next »
Advertisements