AmitDiwan has Published 10744 Articles

Make container shrink-to-fit child elements as they wrap in HTML

AmitDiwan

AmitDiwan

Updated on 20-Nov-2023 12:05:55

1K+ Views

We can easily make container shrink-to-fit child elements as they wrap. First, we will set the flex container flexible − display: flex; We will set the flex items to wrap − flex-wrap: wrap; Set the text center aligned using the text-align property − text-align: center; ... Read More

HTML DOM Form reset() method

AmitDiwan

AmitDiwan

Updated on 18-Nov-2023 03:35:42

1K+ Views

The HTML DOM Form reset() method is used for resetting all the values of the form elements and displaying the default values that are specified using the value attribute of the form elements. It acts as a reset button to clear form data and it doesn’t take any kind of ... Read More

How to create a 2-column layout grid with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 11:30:34

2K+ Views

To create a 2-column layout grid on a web page, we will create and position two divs, one on the left and the next on the right. Create the First div To begin with, we will create a div, beginning with the left div − Some random text on the ... Read More

How to create a "user rating" scorecard with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 11:27:51

768 Views

To create a user rating scorecard, first set the exact icon for a star. That would be done using the Font Awesome icons. The individual ratings are displayed as progress bars. Set the Icon for Star Rating The icon for the star rating is set using Font Awesome Icons. We have added ... Read More

How to create a "to-do list" with CSS and JavaScript?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 11:16:14

423 Views

A to-do list allows you to manage your task. It is like a note. When you type what needs to be done, for example, meeting at 4PM, you press Enter. On pressing Enter, the task gets added and a section for another task is visible wherein you can type the ... Read More

How to create a "scroll back to top" button with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 11:08:36

645 Views

On a lot of websites, you must have seen a Top button while you scroll to the bottom. That is called the “scroll back to top” button. Create a Button First, create a button that will be clicked to reach the top − Top Style the top Button The display is set to none to ... Read More

How to create a "fixed" menu with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 10:38:18

721 Views

To create a fixed menu on a web page, use the position property and set the value fixed. Set the width to 100% using the width property. Set the Navigation Menu Use the element to create the navigation menu on a web page. The links are set using the ... Read More

How to create a "coupon" with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 10:32:34

846 Views

We will see how to create a coupon with CSS. For that, we need to set the company name on the top, an image below, After that comes with coupon code and a text representing when the coupon will expire. Set the Parent Container for the Coupon We gave set the parent ... Read More

How to create a "coming soon page" with CSS and JavaScript?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 10:29:16

290 Views

We will create a coming soon page with a timer. The timer is set using the setInterval() function. The time is fetched using the getTime() function. Set the div We have set the image as a div class. Rest, the coming soon text and the timer is placed within it − ... Read More

How to create a "card" with CSS?

AmitDiwan

AmitDiwan

Updated on 17-Nov-2023 10:25:09

379 Views

On a web page, we can easily create a card like you must have seen on a Team’s page. The employee name, and designation is visible with a thumbnail image. With CSS, we can easily a card and also set the hover style using the :hover selector. Set the Card ... Read More

Advertisements