Jump to content

How can I make a hover effect in the text of header?

Recommended Posts

@MatRobi If you'll post the URL to your site then we can write the exact code.

Jessica Miller | Squarespace Website Designer
https://www.jessicamiller.work
jessica@jessicamiller.work

Search the blog and get Squarespace tips to your inbox
https://www.jessicamiller.work/blog

Want to pick my brain or get help? Book a free 15 minute call.

If my post solved your problem, please mark it as the solution - thanks!

Link to comment

@MatRobi This code will change the color and add a background to any h1 text that is bold.

h1 strong:hover {   
  background-color: #000000;   
  color: #ffffff;
}

Change the 2 hex code colors to whatever you'd like it to be. If you want it to apply to another header, then change h1 to h2 (or whichever header you want it to be). *The font must be bold in order to see the effect.

Edited by JessicaM

Jessica Miller | Squarespace Website Designer
https://www.jessicamiller.work
jessica@jessicamiller.work

Search the blog and get Squarespace tips to your inbox
https://www.jessicamiller.work/blog

Want to pick my brain or get help? Book a free 15 minute call.

If my post solved your problem, please mark it as the solution - thanks!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.