Web Development Articles

Page 55 of 801

How to create an overlay effect with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 421 Views

The overlay effect can be easily created on a web page. Let’s say we have placed the divs together on a web page. To let any of them appear when required is called an overlay effect. The overflow is also closeable with a cross sign on the top-right. Let us see how to create an overlay effect with HTML and CSS. Set the container for overlay A div is set for the overlay with a cross sign to close the overflow and a button for the same purpose − × Script to hide ...

Read More

How to Create an On Scroll Fixed Navigation Bar with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 5K+ Views

The fixed navigation bar fix on the web page using the position property and even on scroll it remains intact. It sticks to the top. On a lot of websites these days, the navigation bar fix to the top. The top property is also used. By specifying the CSS position property, we can create a fixed navigation bar using CSS. The syntax of position property in CSS is as follows − Selector { position: /*value*/; } Above, the value of the position property is fixed to set the fixed navigation bar. Set a container ...

Read More

How to create an image with a transparent background text using CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 698 Views

We can easily create an image with a transparent background text. Set a black background with 0.5 opacity using the CSS background property. Position this using the position property and place to the bottom of an image. Place the text there i.e., a transparent background text on an image. Let us see how to create an image with a transparent background text with HTML and CSS. Set an image container An image container is set and within that the image and some content is shown. This content goes to the bottom − ...

Read More

How to create an image overlay zoom effect on hover with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 881 Views

The image overlay zoom effect on hover is visible on an image when the mouse cursor is hovered. For that, the :hover selector is used. The transition needs to be set for the overlay zoom using the transition property. Let us see how to create an image overload title on hover with HTML and CSS. Set a container A container div is set. Within that, set an image for a child div for the overlay − Amit Set ...

Read More

How to create an expanding grid with CSS and JavaScript?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 727 Views

An expanding grid is a grid that expands when a box is clicked. It hides by default but gets expanded to 100% when the box is clicked once. We will create three equal columns that floats right next to each other. On clicking any of the grid column, the grid will expand. Also, the expanded area will have a closeable button to close and return to the initial stage. Create a container for the three columns Begin with a parent div with three columns. On clicking any of the boxes, the onclick attribute will open the individual tabs − ...

Read More

How to create an email newsletter with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 290 Views

A form that includes the details to subscribe to an email newsletter, includes the name and email-address input fields. With that, a checkbox to subscribe for the daily newsletter can also be created for the users. Also, a button to subscribe to the newsletter can also be seen. We will see here how to design an email newsletter form with HTML and CSS. Create a form and set the input fields A form is created using the . The name, email address, and checkbox fields are set in the form. Also, the submit button is also set inside the form ...

Read More

How to create an avatar image with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 1K+ Views

The avatar image on a website is a profile image visible under the author’s profile. Also visible under the team’s page where details of all the team members are visible on a company’s website. Let us see how to create an avatar image with HTML and CSS. Set the avatar images The images are placed just like any other image using the element − A class is set for both the images so that we can style it and form like an avatar. Style like an avatar image Use the border-radius property and set it ...

Read More

Using WebP Images with Fallback in CSS

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 835 Views

To render a huge number of images in a website, it is advisable to use webp format as it provides better compression. We use the element to provide a fallback for unsupported browsers − To set the images, the srcset attribute of the element is used. The tag allows a user to specify multiple media resources for elements, like , , etc. Using the tag, set alternative image files to allow the web browser to ...

Read More

How to create an animated search form with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 332 Views

A lot of websites these days have an animate search box on the home page itself. On placing the mouse cursor within the search box, the search box width increases to make it easier for users to search. Let us see how to create such animated search form with HTML and CSS. Create the search form Use the element and place the input type text in it. Do not forget to mention an apt placeholder for the users to understand the purpose of the textbox − Search: Style ...

Read More

How to create alert messages with CSS?

AmitDiwan
AmitDiwan
Updated on 14-Dec-2023 1K+ Views

The alert message can be seen on web pages. As an example, we can consider a message while deleted an account on a social media website. Even coupons are provided in the form of alert message on some websites. Other examples can be “Your order is confirmed” or even ““Your password is about to expire. Please update it now.” Let us see how to create alert messages with HTML and CSS. Create a container for the alerts A div is set for the alter message. Within that the alert message is set with the close button symbol − ...

Read More
Showing 541–550 of 8,006 articles
« Prev 1 53 54 55 56 57 801 Next »
Advertisements