Jump to content

Change the color of text when hovering over link object

Recommended Posts

Site URL: https://erickanigan.photography/portfolio-3

Hi there-

I'm hoping to be able to modify the color of text when someone hovers over the linked word. On the link provided, I am hoping to keep the gray color for each of the three lines of text (Landscape, Wildlife, Travel & Leisure), but want the color to change to white when a cursor hovers over the individual item. I tried to use some code that I found elsewhere on the forums, but rather than just changing text color, it put a colored box behind the selection.

 

Would appreciate any help someone could provide!

 

Thanks,

Eric

Link to comment
  • Replies 2
  • Views 987
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

19 hours ago, ed0304 said:

Site URL: https://erickanigan.photography/portfolio-3

Hi there-

I'm hoping to be able to modify the color of text when someone hovers over the linked word. On the link provided, I am hoping to keep the gray color for each of the three lines of text (Landscape, Wildlife, Travel & Leisure), but want the color to change to white when a cursor hovers over the individual item. I tried to use some code that I found elsewhere on the forums, but rather than just changing text color, it put a colored box behind the selection.

 

Would appreciate any help someone could provide!

 

Thanks,

Eric

Add to Design > custom CSS

/* Portfolio item hover */
a.portfolio-hover-item:hover span {
    color: white !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.