Jump to content

Text in button slightly moves when I hover

Go to solution Solved by jimzdano,

Recommended Posts

I have added some nice hover effects and font to all my buttons but when I hover over them the text slightly moves. I have read this is because of padding but when I remove the padding it messes the shape of the button up. I cannot figure it out.

Also it only happens when the browser window is medium to full screen. Any smaller than medium and it goes away as shown in the attached video. It also seems to happen more with the buttons further from the center of the screen.

I'm brand new to this and this ones got me stumped! Here's the whole string of code I'm using for all buttons.

//////ALL BUTTONS//////////

.sqs-block-button-element:hover {
  transform: scale(1.08);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);}

#siteWrapper .sqs-button-element--primary {
  font-family: 'crafter';}

.sqs-block-button-element
{transition: all 0.3s ease-in-out!important; }

.sqs-block-button-element--primary {background-color: #9bb9bb!important; }

.sqs-block-button .sqs-block-button-element--medium {   
   width: 165px !important;
   min-width: 125px !important; }

Link to comment

Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us.

A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

You may find How to post a forum question post useful.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 3/11/2024 at 12:42 AM, creedon said:

Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us.

A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

You may find How to post a forum question post useful.

We can then take a look at your issue.

https://www.missjessliteracy.com/

password55

 

it also happens with my social media icons in the header, depending on the size of the browser

Link to comment
  • 2 weeks later...
  • Solution

Never mind I ended up fixing it... Something with squarespace button styles fighting with my code. I set both button em values to 1.2 in site styles and used code to put all buttons to width: 145px; min-width:125px; and that seemed to solve it.

Hey I'm 3 for 3 on here! Nice!

Link to comment
  • 2 months later...

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.