Diksha Patro

Diksha Patro

99 Articles Published

Articles by Diksha Patro

Page 7 of 10

How to Add Image into Dropdown List for each items?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 8K+ Views

Adding images to dropdown list items enhances the visual appeal and user experience of your web application. This technique uses HTML structure combined with CSS hover effects to create an interactive dropdown menu where each option displays both an icon and text. Syntax .dropdown:hover .dropdown-content { display: block; } .dropdown-content a:hover { background-color: color; } Example: Car Selection Dropdown The following example creates a dropdown menu with car brands, each accompanied by a representative icon − ...

Read More

How to add multiple font files for the same font using CSS?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 14K+ Views

When creating web pages, using multiple font files for the same font family ensures optimal display across different browsers and devices. Some browsers support .woff files while others work better with .ttf or .eot formats. Syntax @font-face { font-family: 'FontName'; src: url('font.woff2') format('woff2'), url('font.woff') format('woff'), url('font.ttf') format('truetype'); } Method 1: Using @font-face Rule The @font-face rule allows you to define custom fonts with multiple file formats as fallbacks. ...

Read More

How to add icons in the button in HTML?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 16K+ Views

Icons in HTML buttons help improve user experience by providing visual cues about the button's function. This guide covers two popular methods for adding icons to buttons using modern approaches. Syntax /* Method 1: Font Icons */ button { font-family: icon-font; } /* Method 2: Background Images */ button { background-image: url(icon.png); background-repeat: no-repeat; background-position: center; } Method 1: Using Font Icon Libraries Font libraries like Font Awesome provide scalable vector icons that can be easily styled ...

Read More

How to add gradients to your project using CSS?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 488 Views

CSS gradients are smooth transitions between two or more colors that add visual depth and interest to your web designs. They can create backgrounds, textures, and enhance the overall appearance of elements without requiring images. Syntax /* Linear Gradient */ background: linear-gradient(direction, color1, color2, ...); /* Radial Gradient */ background: radial-gradient(shape size at position, color1, color2, ...); Method 1: Using Linear Gradient Linear gradients create smooth color transitions in a straight line. You can control the direction and specify multiple color stops to achieve various effects. Example: Basic Linear Gradient The ...

Read More

How to add Full-Screen Background Video using Tailwind CSS?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 7K+ Views

To add full-screen background video using Tailwind CSS, we utilize specific utility classes that control video positioning, sizing, and display properties. Adding a full-screen background video enhances user experience and creates visually engaging web interfaces. Syntax /* Basic full-screen video structure */ .video-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; } .video-element { width: 100%; ...

Read More

Named Pipe or FIFO with example C program

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 8K+ Views

Named pipes, also referred to as FIFOs (First In, First Out), are essential IPC (Interprocess Communication) mechanisms in Unix-like systems. They provide a method for communication between unrelated processes running on the same system. Unlike anonymous pipes, named pipes exist as special files in the filesystem and can be accessed by any process with appropriate permissions. Named pipes follow the FIFO principle, ensuring that data written by one process is read by another process in the same order. This makes them particularly useful for producer-consumer scenarios and process synchronization. Syntax int mkfifo(const char *pathname, mode_t mode); ...

Read More

How to add more values to the array on a button click using PHP?

Diksha Patro
Diksha Patro
Updated on 15-Mar-2026 5K+ Views

Adding more values to an array on a button click in PHP requires combining PHP server-side processing with HTML forms. This functionality is essential for creating dynamic web applications where users can modify array data through user interactions. Using HTML Forms The most straightforward approach uses an HTML form to submit new values to PHP, which then adds them to the array ? Add Values to Array ...

Read More

How to rebuild Docker container on file changes?

Diksha Patro
Diksha Patro
Updated on 06-Sep-2023 59K+ Views

Docker is a widely used containerization solution that allows programmers to easily package and distribute software in a lightweight and portable manner. The capability of rebuilding a container once modifications are made to its files is one of Docker's key features. This can be very helpful for a number of things, like making sure that code changes are appropriately reflected in a development environment or that code updates are always reflected in a containerized application. In this article, we will go into Docker's crucial feature and examine how it may be used to rebuild a container when files are changed. ...

Read More

Message Passing in Java

Diksha Patro
Diksha Patro
Updated on 25-Jul-2023 2K+ Views

Introduction Message passing, a method of transferring communications among items or threads, is an essential idea in distributed systems and parallel programming. The transmission of messages in Java may be accomplished with an assortment of methods and structures, based on the implementation's particular needs Using the power source java.util.concurrent the container, which offers an array of interfaces and class libraries for establishing and handling threads that are active locks, and synchronization mechanisms, is a single method for implementing passing messages in Java, for instance. An Executor interface, for instance, is able to be utilized without delay to carry out duties, ...

Read More

How to define a part of the text in an alternate voice or mood using HTML5?

Diksha Patro
Diksha Patro
Updated on 19-Jul-2023 273 Views

In this article, we will discuss how to define a part of the text in an alternate voice or mood using HTML5. HTML5 provides a range of tags that allow web developers to structure the content of a web page in a more meaningful way. One important aspect of this is being able to emphasize certain words or phrases, like making them italic or bold. This helps the content look better and be easier to read for users. Approaches We have two different approaches to defining a part of the text in an alternate voice or mood using HTML5 including ...

Read More
Showing 61–70 of 99 articles
« Prev 1 5 6 7 8 9 10 Next »
Advertisements