Web Development Articles

Page 188 of 801

Bootstrap .modal("toggle") method

David Meador
David Meador
Updated on 11-Mar-2026 3K+ Views

Use the .modal(“toggle”) method in Bootstrap to toggle the modal.As shown below, the modal generates on the click of a button −$(document).ready(function(){   $("#button1").click(function(){     $("#newModal").modal("toggle");   }); });Here is the button used above −   Modal One You can try to run the following code to implement the modal(“toggle”) method −Example       Bootstrap Example                             Sample     Modal One                                         ×             Sample Modal                                 Click outside to close it.                                 Close                                   $(document).ready(function(){     $("#button1").click(function(){       $("#newModal").modal("toggle");     });   });  

Read More

Container to create a grid of Bootstrap 4 cards like a group

David Meador
David Meador
Updated on 11-Mar-2026 415 Views

To set a container for Bootstrap card and set it like a group, use the card-group class.Use it and create a grid like the following with two Bootstrap cards −             Demo Text!                          Warning!           The following is an example to create a grid (group of cards) in Bootstrap −Example       Bootstrap Example                             Group of Messages                             Demo Text!                                       Warning!                                        Well done!                                       Selected!                        

Read More

Bootstrap 4 .flex-wrap class

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

Use the flex-wrap class in Bootstrap 4 to wrap flex items. The following is the code snippet to wrap the flex items −   .   .  

Read More

Align an element with the baseline of the parent in Bootstrap 4

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

Use the align-baseline class in Bootstrap 4 to align an element with the baseline of the parent elment.Set the align-baselinec class like the following code snippet −Now add the content inside it −     Demo Baseline You can try to run the following code to align an element with the parent’s baseline −Example       Bootstrap Example                                   Example       This is demo text       Demo Baseline      

Read More

CSS Chroma Filter

Anvi Jain
Anvi Jain
Updated on 11-Mar-2026 3K+ Views

Chroma Filter is used to making any particular color transparent and usually, it is used with images. You can use it with scrollbars also.ExampleImplementing the CSS Chroma Filter −                         Text Example:       CSS Tutorials    

Read More

CSS :before pseudo-element

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 181 Views

Use this element to insert some content before an element. The following example demonstrates how to use the :before element to add some content to any element.Example                    p:before          {             content: url(/images/bullet.gif)          }                     This line will be preceded by a bullet.       This line will be preceded by a bullet.       This line will be preceded by a bullet.    

Read More

Role of CSS :hover Selector

varma
varma
Updated on 11-Mar-2026 358 Views

Use the CSS :hover selector to style links on mouse over with CSS. You can try to run the following code to implement the :hover selector −Example                    a:hover {             background-color: orange;          }                     Qries       Keep the mouse cursor on the above link and see the effect.    

Read More

Set Responsive Font Size using CSS

radhakrishna
radhakrishna
Updated on 11-Mar-2026 370 Views

To set the responsive font size, use the ‘viewport width’ and set it to ‘vw’ unit. You can try to run the following code to use ‘vw’ unit −Example                    h1 {             font-size:8vw;          }                     This is demo heading       This is demo text.    

Read More

Style the active link with CSS

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

To style the active links, use the CSS :active selector. You can try to run the following code to style the active linksExample                    a:active {             background-color: green;          }                     Welcome to Qries       Click on the above link to see the effect.    

Read More

Role of CSS :first-of-type Selector

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

Use the CSS :first-of-type selector to style every element that is the first element of its parent with CSS.ExampleYou can try to run the following code to implement the :first-of-type selector                    p:first-of-type {             background: orange;          }                     This is demo text1.       This is demo text2.    

Read More
Showing 1871–1880 of 8,006 articles
« Prev 1 186 187 188 189 190 801 Next »
Advertisements