How to Add CSS Styling to An Element When Going Over it (on Hover)

How Do You Add CSS Styles on Hover? Source: Jamie Street

New to CSS? Not sure how to add styles on hover?

Luckily for you, it’s pretty easy 😄 Here’s how it’s done:

Let’s Make a New Link 🔗

<a class="link">Hover Over Me!</a>

Now, let’s add a few styles to this link:

.link {
color:red…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oliver Carmont

Oliver Carmont

11 Followers

UI/UX Designer that produced tech tutorials in Berkeley, CA.