Articles on Trending Technologies

Technical articles with clear explanations and examples

Bootstrap page-header class

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 746 Views

Page header is used to add appropriate spacing around the headings on a page.To use a page header, wrap your heading in a with a class of .page-header −Example           Bootstrap Example                                                       Header             Subtext for header                       Demo text! Demo text! Demo text! Demo text! Demo text!          Demo text! Demo text! Demo text! Demo text!          

Read More

Place an element in the middle of the parent element in Bootstrap 4

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

Use align-middle class to place an element in the middle of the parent element.To place an element in the middle −   Middle Alignment Let us seen an example to implement the align-middle class in Bootstrap 4 −Example       Bootstrap Example                                   Example       This is demo text       Demo Baseline       Top Alignment       Middle Alignment       Bottom Alignment    

Read More

Bootstrap 4 .flex-fill class

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

Use the flex-fill class to set the flex items to be equal width in Bootstrap 4.Set the flex item inside the set as flex −   Example 1   Example 2   Example 3   Example 4 The following is an example displaying the implementation of flex-fill class −Example       Bootstrap Example                             With flex-fill              Example 1        Example 2        Example 3        Example 4            Without .flex-fill:              Example 1        Example 2        Example 3        Example 4          

Read More

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

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 279 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 284 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 519 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 473 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 375 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
Showing 29941–29950 of 61,299 articles
Advertisements