Jump to content

Making custom button

Recommended Posts

Hi!

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;
}


.sqs-block-button-element--large:hover
{   
  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
  • 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.