Articles on Trending Technologies

Technical articles with clear explanations and examples

Align flex items from everywhere in Bootstrap

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

Use the .justify-content-* class in Bootstrap to align flex items from start, end, center, between, etc.For justify-content-start, the justified flex items would be aligned like −For justify-content-end, the justified flex items would be aligned like −For justify-content-around, the justified flex items would be aligned like −Let us see how to justify content −Example   Bootstrap Example                       Rank 1       RANK 2       RANK3               RANK 1       RANK 2       RANK 3               RANK 1       RANK 2       RANK 3      

Read More

How to store a name permanently using HTML5 Local Storage?

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

The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.HTML5 localStorage saves string data in the browser and lasts beyond the current session. localStorage stores the data, with no expiration, whereas sessionStorage is limited to the session only. When the browser is closed, the session is lost.The data won’t get deleted when the browser is closed. Here, we will save the name for example.You can ...

Read More

Incremental Java infinite loop

Abhinanda Shri
Abhinanda Shri
Updated on 11-Mar-2026 242 Views

ExampleFollowing is the required program −public class Tester {    public static void main(String args[]) {       int i = 0;       do {          i++;          System.out.println(i);       }while (true);    } }The output will keep printing numbers in sequential order.

Read More

Align flex items in the end on different screen sizes in Bootstrap

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

Use the .justify-content-*-end class to align flex items in the end on different screen sizes like this −For small screen size, use −justify-content-sm-endFor medium screen size, use −justify-content-md-endFor large screen size, use −justify-content-lg-endLet us see how to align flex items horizontally on small, medium and large screen sizes −Example       Bootstrap Example                             Form of Tea           Black Tea       Green Tea       Indian Tea               Black Tea       Green Tea       Indian Tea               Black Tea       Green Tea       Indian Tea      

Read More

How to limit maximum items on multiple input (<input type=“file” multiple />)?

Jennifer Nicholas
Jennifer Nicholas
Updated on 11-Mar-2026 14K+ Views

To allow multiple file uploads in HTML forms, use the multiple attributes. The multiple attributes work with email and file input types.For limiting maximum items on multiple inputs, use JavaScript. Through this, limit the number of files to be uploaded. For example, let’s say only 2 files to be uploaded at once.You can try to run the following code to learn how to use multiple attributes in HTML. With that, we will limit the number of files uploaded using JavaScript.Example           HTML file upload                     ...

Read More

How to import java.lang.String class in Java?

Fendadis John
Fendadis John
Updated on 11-Mar-2026 18K+ Views

To import any package in the current class you need to use the import keyword asimport packagename;Exampleimport java.lang.String; public class Sample {    public static void main(String args[]) {       String s = new String("Hello");       System.out.println(s);    } }OutputHello

Read More

How to set the starting position of a background image in JavaScript DOM?

Sharon Christine
Sharon Christine
Updated on 11-Mar-2026 554 Views

To set the starting position of a background image in JavaScript, use the backgroundposition property. It allows you to set the position of the image.ExampleYou can try to run the following code to learn how to set all the position of a background image with JavaScript −                    body {             background-repeat: no-repeat;          }                     Click to Set background image                function display() {             document.body.style.backgroundImage = "url('https://www.tutorialspoint.com/html5/images/html5-mini-logo.jpg')";             document.body.style.backgroundPosition="top right";          }          

Read More

Java Program to Make a Simple Calculator Using switch...case

AmitDiwan
AmitDiwan
Updated on 11-Mar-2026 4K+ Views

In this article, we will understand how to construct a simple calculator using switch-case. The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case.Following are the arithmetic operations we are going to perform.AdditionSubtractionMultiplicationDivisionFloor DivisionModuloBelow is a demonstration of the same −InputSuppose our input is −The two inputs: 40.0 and 12.0 Operator:%OutputThe desired output would be −The result is 40.0 % 12.0 = 4.0AlgorithmStep 1 - START Step 2 - Declare three values namely my_input_1, my_input_2 and my_result and declare a character value namely operator. Step 3 - Read the required ...

Read More

Change the order of the Bootstrap grid columns

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

Use the .col-*-pull-* and .col-*-push-* classes in Bootstrap to change the order of the Bootstrap grid columns −Example           Bootstrap Example                                          Bootstrap Example 1                    Right             Left                    

Read More

Rotate div to -20 degrees angle with CSS

Ankitha Reddy
Ankitha Reddy
Updated on 11-Mar-2026 681 Views

You can try to run the following code to rotate div to -20 degrees angle with CSS − Example div { width: 300px; height: 100px; background-color: pink; border: 1px solid black; } div#myDiv { /* IE 9 */ -ms-transform: rotate(-20deg); /* Safari */ -webkit-transform: rotate(-20deg); /* Standard syntax */ transform: rotate(-20deg); } Tutorials point.com. Tutorials point.com Output

Read More
Showing 261–270 of 61,248 articles
« Prev 1 25 26 27 28 29 6125 Next »
Advertisements