AmitDiwan has Published 11365 Articles

How to style a header with CSS?

AmitDiwan

AmitDiwan

Updated on 21-Dec-2023 14:27:54

7K+ Views

The padding property plays a major role while styling headings. Also, use the text-align property to center the text on a header. Remember to place the header in a separate div container. Let us see how to style a header with HTML and CSS. Set the header div Create ... Read More

How to stretch elements to fit the whole height of the browser window with CSS?

AmitDiwan

AmitDiwan

Updated on 21-Dec-2023 14:25:41

1K+ Views

To stretch the elements to fit the whole height of the web browser window, use the height property and set it to 100%. The same height:100% is also set for the entire web page. Let us see how to stretch elements to fit the whole height of the browser window. ... Read More

How to create popups with CSS and JavaScript?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:41:55

407 Views

A popup appears on the click of a button. Add any key message in it. To close the popup, set a cross symbol on top-right. However, the popups generally close when the mouse cursor is placed somewhere else on the web page. Set a button to open the popup First, ... Read More

How to create pill buttons with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:40:55

2K+ Views

The pill buttons mean pill-shaped buttons. We can easily style and shape the default button to form a pill button. Set the border-radius on the button to shape it like a pill button. You can also remove the border using the border property with the value none. Align the button ... Read More

How to create notification buttons with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:39:57

440 Views

A notification button includes a separate text on the top-right i.e., a badge with the number of notifications. Notifications are like pending messages waiting to be read. Once you read, the count of the notification i.e., the pending message will decrease. We can easily create such a button look-alike with ... Read More

How to create loading buttons with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:38:53

287 Views

Buttons can be displayed as loading when they are clicked. On click, the button may reach the next page but just before that, the loading stage is visible. On your web page, you can easily display the loading buttons with HTML and CSS. First, load the icons. Set the CDN ... Read More

How to Create LEFT-RIGHT Alignment of Containers with CSS Flex?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:36:36

894 Views

With flex, we can easily create left-right alignment of containers. The flexible items are displayed horizontally using the flex-direction property. The flexible items have a space between them since the justify-content is set to space-between. The following examples illustrate CSS flex property. Align with Flex Direction The div container is ... Read More

How to create image overlay icon effect on hover with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:29:26

958 Views

To create an image overlay icon effect with CSS, you need to set the icons. Here, we will consider the Font Awesome icon. To include such icons, set the CDN for the icon under the . On hover, the overlay effect will display an icon. Set the CDN for the ... Read More

How to create image overlay hover slide effects with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:27:07

846 Views

The image overlay slide effect is hidden when the page loads and is visible when the mouse cursor is hovered on the image. The ease-in-outtransition effect is set using the transition property to make the overlay slide effect possible. Let us see how to create an image overlay hover slide ... Read More

How to create image overlay hover effect with CSS?

AmitDiwan

AmitDiwan

Updated on 14-Dec-2023 17:21:53

872 Views

The image overlay effect on hover is hidden when the page loads and is visible when the mouse cursor is hovered on the image. The ease transition effect is set using the transition property to make the overlay effect possible. Let us see how to create an image overlay hover ... Read More

Advertisements