Jump to content

Center arrow vertically on mobile buttons

Recommended Posts

Posted

Hello everyone, 

 

I’ve customized the buttons by adding the arrow, but I can’t get it centered vertically. On desktop it looks fine, but I’ve noticed that the smaller the resolution, the lower the arrow goes. 
 

Can you please help me with this? 
 

I’ve tried playing with the margin or padding, but didn’t work. 
 

The website url is www.karinaklaus.com, password hello

 

image.thumb.jpeg.f45989630db18f0d0e9ff015b354b8c0.jpeg

Posted

Try this to Website Tools > Custom CSS

a.sqs-block-button-element--medium.sqs-button-element--primary.sqs-block-button-element {
    display: flex;
    align-items: center;
}
a.sqs-block-button-element--medium.sqs-button-element--primary.sqs-block-button-element:after {
    margin-left: 5px;
}

 

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!)

Posted

I tried the code tuanphan provided and added a 4px bottom padding which pushed the arrow up. It is not perfect, but it looks ok

.sqs-block-button-element:after {
    content: '⟶';
  margin: 0px 0px 0px 0px;
  padding:  0px 0px 4px 0px;
}
a.sqs-block-button-element--medium.sqs-button-element--primary.sqs-block-button-element {
    display: flex;
    align-items: center;
}
a.sqs-block-button-element--medium.sqs-button-element--primary.sqs-block-button-element:after {
    margin-left: 5px;
}

The only button I'm still having issues with is the the form button on the contact page

I tried using this code:

button.form-submit-button {
    display: flex;
    align-items: center;}

button.form-submit-button .form-submit-button-label:after {
       margin-left: 5px;
}

 

Do you have any solutions for this button or a different solution in general?

 

Thank you!

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.