Making buttons and navigational elements with :hover

web

The :hover selector is used to select elements when you mouse over them. The :hover selector can be used on all elements, not only on links.

Use the :link selector to style links to unvisited pages, the :visited selector to style links to visited pages, and the :active selector to style the active link.

Make a pill-shaped submission button with CSS

Make a new Code Pen and follow along with the demonstration.

https://youtu.be/jUO-g4ZnxNw

Create a responsive navigation menu

Fork this Code Pen to follow along with the demonstration. This finished pen is below.

https://youtu.be/0IOX6SwJZwc

I extended this project to include a mobile menu icon that displays the menu on hover, check it out here.


Previous
Previous

Implementing a Formspree contact form

Next
Next

Making animated backgrounds in After Effects