mathildenicoline Posted February 21, 2020 Share Posted February 21, 2020 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; } Link to comment
tuanphan Posted February 22, 2020 Share Posted February 22, 2020 Can you share link to button on your site? Difficult to help with only code, without checking button code on live site. 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
mathildenicoline Posted February 24, 2020 Author Share Posted February 24, 2020 Offcourse, I am working on a trial site though. For now it is here https://tuba-fife-gr7b.squarespace.com/new-page Password: hello Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.