Articles on Trending Technologies

Technical articles with clear explanations and examples

Create a green color alert box that indicates a positive action in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 1K+ Views

To create a green color alert box indicating a positive action, use the alert-success class.To implement an alert-success class, you need to try to run the following code −Example           Bootstrap Example                                          Indicates a positive action!          

Read More

Bootstrap 4 .card-subtitle class

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

Use the card-subtitle class to set subtitle for the card.The card-subtitle class is used as shown below −SportsHere, I have set the subtitle as “Indoor” for an example. The subtitle class comes after the card-title Bootstrap class −   Sports   Indoor   Squash, Dart, Chess Let us see the example to work with card-subtitle class in Bootstrap 4 −Example   Bootstrap Example                 Indoor and Outdoor Sports                   Sports         Indoor         Squash, Dart, Chess                       Sports         Outdoor         Cricket, Football, Hockey                

Read More

Set negative action to the Bootstrap 4 card

Kristi Castro
Kristi Castro
Updated on 11-Mar-2026 162 Views

To set negative action on a Bootstrap card, use the bg-warning class with the card class as shown in the below example −   Over 20 students failed the final-year exam. Let us see an example to set negative action to a card in Bootstrap 4 −Example       Bootstrap Example                             Result           Over 20 students failed the final-year exam.      

Read More

Difference between super() and this() in Java

Vikyath Ram
Vikyath Ram
Updated on 11-Mar-2026 8K+ Views

Following are the notable differences between super() and this() methods in Java. super()this()Definitionsuper() - refers immediate parent class instance.this() - refers current class instance.InvokeCan be used to invoke immediate parent class method.Can be used to invoke current class method.Constructorsuper() acts as immediate parent class constructor and should be first line in child class constructor.this() acts as current class constructor and can be used in parametrized constructors.OverrideWhen invoking a superclass version of an overridden method the super keyword is used.When invoking a current version of an overridden method the this keyword is used.Exampleclass Animal {    String name;    Animal(String name) { ...

Read More

Create a circular badge with Bootstrap

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

Use the .badge class in Bootstrap to create a circular badge with Bootstrap.You can try to run the following code to implement .badge class −Example           Bootstrap Example                                          Blog Posts          Tech 95          Entertainment 30          Research 9          Viral 20          Sport 105          

Read More

Bootstrap 4 .justify-content-* class

Kristi Castro
Kristi Castro
Updated on 11-Mar-2026 1K+ Views

To align flex items, use the justify-content-* class.Use any of the following to align flex items at the start, end, around, and between.justify-content-start – Align Flex items at the start justify-content-end  - Align Flex items at the end justify-content-around – Align  flex items around on different screen sizes justify-content-between  - Alex flex items in between on difference screen sizesLet us see an example to set the flex items at the start −   RANK 1   RANK 2   RANK3 The following is the example to implement the justify-content-* class −Example   Bootstrap Example                     RANK 1     RANK 2     RANK3         RANK 1     RANK 2     RANK 3         RANK 1     RANK 2     RANK 3  

Read More

Add a hover effect inside the Bootstrap 4 card

Kristi Castro
Kristi Castro
Updated on 11-Mar-2026 709 Views

To add a hover effect, use the card-link class in Bootstrap.The following are the links using the card-link class −XAMPP (MySQL + PHP + Apache) WordPressAll of the above code is used inside the card-body class −   WordPress Installation   To work with WordPress, you need the following   XAMPP (MySQL + PHP + Apache)   WordPress You can try to run the following code to add a hover effect inside Bootstrap 4 card −Example      Bootstrap Example                           Requirement - WordPress             WordPress Installation       To work with WordPress, you need the following       XAMPP (MySQL + PHP + Apache)       WordPress        

Read More

Add a red background color to an element to set danger action with Bootstrap

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

Use the .btn-danger class to set danger action for a button i.e. red background color to an element.You can try to run the following code to implement danger action −Example           Bootstrap Example                                          Categories                      Tech 95          Entertainment 30          Research 9          Viral 20          Sport 105                      Do not click below:          Danger          

Read More

Bootstrap table-responsive class

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 2K+ Views

Wrapping any .table in .table-responsive class, you will make the table scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.To make a responsive table, you can try to run the following code −Example           Bootstrap Table                                                                                         Subject                   Marks                   Student                                                                  Programming                90                Amit                                        Web Dev                92                Yuvraj                                        Science                95                Sachin                                        Economics                80                Tony                                

Read More

Set the width of an element to 100% in Bootstrap

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 3K+ Views

To set the width of an element to 100%, use the .w-100 class in Bootstrap.You can try to run the following code to set element’s widthExample           Bootstrap Example                                          Set element width          Normal width          Width is 25%          

Read More
Showing 30051–30060 of 61,297 articles
Advertisements