Jump to content

Custom code for buttons to have different image backgrounds

Recommended Posts

Posted

I am trying to have each of our services listed across as buttons -I have figured out how to code it to get the image in the button, but how can I make it so each button has a different image? 

 

The 'Financial Planning' image is the area I'm meaning. The code I'm using is:

.sqs-block-button-element{

  background-color: transparent !important;

  background-image: url('https://static1.squarespace.com/static/646275a46bd1e55c3dee1997/t/646ccec59edb0959d790738d/1684852421375/Financial+Planning+%281%29.png');

  background-repeat: no-repeat;

  background-position: center;

  background-size: contain;

}

 

I would also be open to having images here and using a code for a hover effect, but I could not figure that out. 

Screenshot 2023-05-23 103200.png

  • Replies 1
  • Views 188
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.