Pankaj Kumar Bind

Pankaj Kumar Bind

33 Articles Published

Articles by Pankaj Kumar Bind

Page 3 of 4

How to Style the Selected Label of a Radio Button?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 15-Mar-2026 1K+ Views

In this article, we will style the label for the radio button which is currently selected. CSS allows you to eliminate the default radio button and style the selected and unselected states of the labels. This is accomplished with the help of the :checked pseudo-class and adjacent sibling selectors. Syntax input[type="radio"]:checked + label { /* Styles for selected label */ } label { /* Default label styles */ } Styling the Selected Label of a Radio Button To begin with, we hide the original circular ...

Read More

How to Align Labels Next to Inputs?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 15-Mar-2026 4K+ Views

When designing web forms, aligning labels next to input fields can significantly improve readability and usability. This alignment enhances the form's visual structure, making it easier for users to fill out information. In this article, we'll cover CSS techniques for aligning labels both to the right and left of their respective input fields. Syntax label { display: inline-block; width: value; text-align: left | right; } Basic CSS Properties for Label Alignment The key properties for aligning labels are: PropertyPurposeCommon Values ...

Read More

Image Clip Animation with Sliders using only HTML & CSS

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 15-Mar-2026 1K+ Views

Creating an animated image clip with a slider using only HTML and CSS provides an interactive way to display multiple images with smooth circular clip-path transitions. In this tutorial, we'll create an image carousel where each image reveals with a circular animation effect controlled by stylish radio button sliders. Syntax .element { clip-path: circle(radius at position); transition: clip-path duration ease; } input[type="radio"]:checked ~ .target { clip-path: circle(150% at 0% 100%); } Project Setup You'll need to set up basic HTML and ...

Read More

Double Click Heart Animation in HTML CSS & JavaScript

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 15-Mar-2026 2K+ Views

The double-click heart animation is a popular interactive effect commonly seen on social media platforms. This article demonstrates how to create this engaging animation using HTML, CSS, and JavaScript, where users can double-click anywhere on a container to display an animated heart at that specific position. Syntax /* CSS Animation Syntax */ @keyframes animation-name { 0% { /* initial state */ } 50% { /* middle state */ } 100% { /* final state */ } } .element { animation: ...

Read More

How to create a circle with text in Tailwind CSS?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 15-Mar-2026 1K+ Views

In this article, we will learn how to create a circular element with text inside using Tailwind CSS. Tailwind CSS is a utility-first CSS framework that allows for fast UI development with pre-built classes. Prerequisites: You need to have Tailwind CSS included in your project. You can add it via CDN by including this link in your HTML head section: Basic Circle with Text To create a circle with text, we use Tailwind's utility classes for width, height, background, border-radius, and flexbox centering − Circle ...

Read More

How to Convert Base64 to JSON String in JavaScript?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 03-Jan-2025 1K+ Views

Base64 encoding is widely used as an ASCII string to represent binary data. However, converting Base64 strings to JSON is a common data exchange specification. This is because JSON is a human-readable format and is easily converted into JavaScript. In this article, we will explore methods to convert Base64 string to JSON string by giving examples and output for each. What is Base64? Base64 is a type of encoding scheme that represents binary data in an ASCII string. It generally gets used to encode an image, file, or other non-textual data to transfer safely across a text-based protocol like ...

Read More

How to read and write JSON file using Node?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 03-Jan-2025 1K+ Views

Node.js provides powerful tools for working with files, including reading and writing JSON files. JSON (JavaScript Object Notation) is widely used for storing and exchanging data in applications. This article walks you through reading and writing JSON files in Node.js with examples. Approaches to Read JSON file Using fs.readFileSync (Synchronous) Using fs.readFile (Asynchronous) JSON File data.json { "name": "PankajBind", "age": 21, "skills": ["JavaScript", "Node.js", "React"] } Using fs.readFileSync (Synchronous) The fs module in Node.js provides methods to interact with the file ...

Read More

How to Compare Rows and Columns in the Same Table in SQL

SQL
Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 22-Nov-2024 501 Views

It is not uncommon in SQL to analyze tables vertically or horizontally in an attempt to obtain a solution. This might include establishing a baseline for evaluating successive states, determining boolean variables, or even classifying information without requiring joins over distinct tables. In this article, we explain relevant similarities with examples. Setting Up the Database Let us set up a database with a sample table to illustrate the processes involved in the case studies, this setup will feature the insertion of dummy values to test comparisons. First of all, create a database using the CREATE DATABASE statement − CREATE DATABASE ...

Read More

SQL Query to Compare Two Dates

SQL
Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 21-Nov-2024 401 Views

Working with dates in SQL can be challenging, especially for beginners. We need to make sure that the format of the date values are consistent throughout the queries, whether you're dealing with simple DATE types or complex DATETIME values. This article will walk you through the process of comparing two dates using different approaches, including examples and outputs, ensuring clarity and understanding. In SQL dates are typically stored in DATE or DATETIME format and to compare two dates, we can use comparison operators such as − =: Checks if two dates are equal. : Checks if one date is ...

Read More

How to Convert JSON to CSV File in JavaScript?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 07-Nov-2024 2K+ Views

JavaScript Object Notation or JSON is recognized widely for data interchange while exporting and importing modular result data is done through CSV (Comma-Separated Values). It is quite common to convert JSON to any other format for reporting purposes or to integrate with different systems. In this article, we will explore different ways to transform JSON data into CSV format in JavaScript, incorporating its code, examples, and clarifications of its principles. Understanding JSON and CSV Formats JSON: JSON represents data as an array of objects, with each object containing key-value pairs. ...

Read More
Showing 21–30 of 33 articles
Advertisements