Articles on Trending Technologies

Technical articles with clear explanations and examples

Add a light-blue label (set info) with Bootstrap

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 235 Views

Use .label-info class in Bootstrap to add light-blue label.You can try to run the following code to implement the .label-info classExample           Bootstrap Example                                          Info label          Information          

Read More

Bootstrap hide.bs.tab event

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 1K+ Views

The hide.bs.tab fires when the tab is about to be hidden in Bootstrap.Fire the hide.bs.tab and generate the alert before the modal is hidden −$('.nav-tabs a').on('hide.bs.tab', function(e){   alert('Previous tab will hide now!'); });The first tab is the active tab and fade in property is also set −   Home   This is demo text! You can try to run the following code to implement the hide.bs.tab event −Example       Bootstrap Example                             Web ...

Read More

Bootstrap thumbnail class

Rishi Rathor
Rishi Rathor
Updated on 11-Mar-2026 244 Views

The role of .thumbnail class in Bootstrap is used to create a thumbnail for images −Example           Bootstrap Example                                                                                                    

Read More

shown.bs.tooltip event in Bootstrap

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

The shown.bs.tooltip event in Bootstrap fires when the tooltip is completely displayed:$("[data-toggle='tooltip']").on('shown.bs.tooltip', function(){   alert('Tooltip is completely visible now.'); });The data-toggle attribute above is set on a link, wherein the popup will originate on button click as shown in the following code snippet:   Timings You can try to run the following code to implement the shown.bs.tooltip event −Example       Bootstrap Example                             Event     Here tooltip will be displayed using the "Show" ...

Read More

Flex items into equal widths on different screens with Bootstrap 4

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

To set flex items to equal width on different screens, use the the flex-*-fill class.For small width screen, use flex-sm-fill −   A For large width screen, use flex-lg-fill −   A The following is an example to give euqla width to flex items on different screens −Example       Bootstrap Example                             Flex (Small Width)           A       B       C         Flex (Medium Width)             A       B       C         Flex (Large Width)             A       B       C      

Read More

Style Bootstrap 4 card with bg-primary class

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

Use the bg-primary class in Bootstrap 4, to add important stuff to a card and set blue background color.Style the Bootstrap 4 card as in the following code snippet −   Medical Books I have set the body of the card in the card-body class −   Medical Books To implement the bg-primary class in Bootstarp 4, you can try to run the following code −Example       Bootstrap Example                             Books           History Books               Medical Books      

Read More

Bootstrap .popover("destroy") method

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 1K+ Views

Use the popver(“detroy”) to destroy the popover.It hides the popover −popover('destroy');The method is used to destroy the popover −$(".btn-default").click(function(){   $("[data-toggle='popover']").popover('destroy'); });You can try to run the following code to implement the popver(“destroy”) method −Example       Bootstrap Example                             Examination           Here's the result:       Result       Refresh           $(document).ready(function(){    $(".btn-default").click(function(){      $("[data-toggle='popover']").popover('toggle');    });    $(".btn-danger").click(function(){      $("[data-toggle='popover']").popover('destroy');    });   });

Read More

Add HTML headings into Bootstrap thumbnails

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 330 Views

With Bootstrap, you can easily add heading to thumbnails.You can try to run the following code to add HTML headings −Example           Bootstrap Example                                                                                                              Thumbnail Heading                                

Read More

Bootstrap 4 .flex-grow-0|1 class

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

Use the .flex-grow-0|1 class in Bootstrap to allow a singly lex item to take up rest of the space in the flex.For example, the following takes rest of the space in the right −The above is set by adding flex-grow class for the last flex-item −   P   Q   R Let us see the following example to implement flex-grow-0|1 class −Example       Bootstrap Example                                   P       Q       R               P       Q       R      

Read More

Bootstrap breadcrumb class

George John
George John
Updated on 11-Mar-2026 157 Views

On a website or blog, breadcrumbs can show the dates of publishing, categories, or tags. Breadcrumbs show hierarchy-based information. In Bootstrap, use the .breadcrumb class to add breadcrumbs to a website.You can try to run the following code to implement breadcrumbs −Example           Bootstrap Example                                          Home          Quiz          PHP          

Read More
Showing 29941–29950 of 61,297 articles
Advertisements