Jump to content

use an png image for a button background

Recommended Posts

Site URL: https://www.pebblesschoolofmotoring.co.uk


Im trying to use this bit of code in my design - custom css for using a png image as a button

.sqs-block-button-element--medium{background-color:transparent!important; background-image:url(‘image-url-here'); background-size:contain!important; background-position:center;background-repeat:no-repeat!important}

i'm getting a message in the code box -expected ')' got '''

I cant see what to change... i have loaded up the png to custom files and slected, deleted andthen selected the file in the custom files box etc. the button has changed to clear.



the password is P388l3s www.pebblesschoolofmotoring.co.uk

Screenshot 2021-02-17 at 15.37.29.png


Edited by jaggerdesign
spelling mistake
Link to comment
  • Guest changed the title to use an png image for a button background
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Your code missing some character. Use this code

.sqs-block-button-element--medium {
	background-color: transparent !important; 
	background-image: url('url image here'); 
	background-size: contain !important; 
 	background-position: center;
	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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.