Jump to content

Image as button CSS question

Recommended Posts

Site URL: https://flower-sturgeon-j6d9.squarespace.com/

I used CSS to change the button in the header to an image. I am trying to use the same code, for a small button ".sqs-block-button-element--small" for the buttons below the word "Services." The button becomes transparent, words are grey, but the image does not overlay. I'm not understanding why the code will not work with another type of button now. 


password: karolina

Screen Shot 2022-06-12 at 6.25.39 PM.png

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

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Use this code

div.button-block a {
    background-color: transparent !important;
    background-image: url(https://static1.squarespace.com/static/6296597a72211429ea2f8b50/t/62a6184fc5fe2f1af456f63d/1655052367473/Untitled+design+%2823%29.png) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !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.