Jump to content

Making custom button

Recommended Posts


I'm new to coding and I'm attempting to make a custom imagefile work as a button. So when I add a button block, this will be inserted. I have managed to do this (yay!), but am struggling with the text on the button, I want this to be centered both vertically and horizontally, but when I insert this in the code it seems to only apply to the image.

Here is my code so far:

.sqs-block-button-element--large {
    width: 400px !important;
    height: 400px !important;
    background-image: url(imgurl);
    background-repeat: no-repeat;

  width: 400px;
    height: 400px;
    background-image: url(imgurl);
    background-repeat: no-repeat;


Skjermbilde 2020-02-21 kl. 15.32.26.png

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


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.