Jump to content

Custom CSS not working to change image on hover

Recommended Posts

I am trying to have an image swap with another image on hover. 

This is my code:

#yui_3_17_2_1_1573589440099_107 {
    background-image: url(https://static1.squarespace.com/static/5c6d99d…/t/5dc91c4…/1573461074565/marks_thumbnail.png);
  background-size: 646px 470px;
}

#yui_3_17_2_1_1573589440099_107 img:hover {
  opacity: 0%;
}

When I use this within Chrome developer tools (right-click>inspect) in the style/css section, it works like a charm. But inserted into the custom CSS section of Squarespace, nothing happens.

 

this is my website: https://www.mrndacreative.com/

Link to comment
  • Replies 1
  • Views 397
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.