Harshit Sachan

Harshit Sachan

25 Articles Published

Articles by Harshit Sachan

Page 3 of 3

Create the Indian Flag using HTML and CSS

Harshit Sachan
Harshit Sachan
Updated on 15-Mar-2026 14K+ Views

To create the Indian flag using HTML and CSS, we will need to have good understanding of CSS. Indian flag have three colors: saffron, white and green and Ashoka Chakra at the middle. In this article, we will be creating stepwise Indian flag. First making a pole then tricolor and then rotating Ashoka chakra all with the help of HTML and CSS only. Later we will be animating our flag with wave animation and flag movement. Basic Structure We will start by creating the basic HTML structure for our Indian flag − ...

Read More

10 CSS Functions every Front-end Developer should know

Harshit Sachan
Harshit Sachan
Updated on 15-Mar-2026 804 Views

CSS (Cascading Style Sheets) is a stylesheet language used for describing the look and formatting of a document written in HTML. CSS functions provide powerful, reusable solutions for common styling tasks, making code more maintainable and dynamic. In this article, we will explore 10 essential CSS functions that every frontend developer should know. These functions can significantly improve your styling workflow and create more flexible, responsive designs. Unlike functions in other programming languages, CSS functions focus on visual presentation rather than logic. They help calculate values, manipulate colors, select elements, and transform visual properties efficiently. The main ...

Read More

How does auto property work in margin: 0 auto in CSS?

Harshit Sachan
Harshit Sachan
Updated on 15-Mar-2026 3K+ Views

The margin: 0 auto property is a commonly used CSS technique that horizontally centers elements within their container. The "auto" value for the left and right margins is what enables this centering to occur. Syntax selector { margin: top-bottom left-right; } /* For centering */ selector { margin: 0 auto; } How Auto Property Works When you set margin: 0 auto, you're actually setting four margin values − Top and bottom margins: Set to 0 Left and right margins: Set to "auto" ...

Read More

How to specify no border in CSS

Harshit Sachan
Harshit Sachan
Updated on 15-Mar-2026 3K+ Views

The CSS border property can add visual definition to elements, but sometimes you need to remove borders entirely. This article demonstrates how to specify no border in CSS using different techniques. Syntax selector { border: none; /* or */ border: 0; /* or */ border-width: 0; } Method 1: Using border-width Property Setting border-width: 0 makes the border invisible by reducing its width to zero − ...

Read More

How to remove input background on select in CSS

Harshit Sachan
Harshit Sachan
Updated on 15-Mar-2026 6K+ Views

The default styling for HTML form elements can often be somewhat dull and uninspiring. One element that is often in need of a design overhaul is the select input, which is used to present users with a list of options to choose from. In this article, we will show you how to remove the default background of the select input using CSS. By doing so, you will be able to customize the appearance of your select inputs and make them more visually appealing and in line with the overall design of your website or application. Syntax ...

Read More
Showing 21–25 of 25 articles
« Prev 1 2 3 Next »
Advertisements