Jump to content

Width of button and the corner style changes with hover effect applied

Recommended Posts

Site URL: https://ppi-institute.squarespace.com

PW: janandsusan

So we're attempting to add a hover effect for all buttons (sitewide) — the code is here that works for everything except image cards:

.image-button-inner:hover a {
    background: #FFFFFF

 

 !important;
    color: #000000

 

 !important;}
.image-button-inner:hover {box-shadow: 0px 2px 5px rgba(0,0,0,.3)}

 

The problem is specifically the hover effect on the image card CHANGES the button width on hover AND removes the rounded corners. 

 

Help? 

Jan & Susan
admin + design
janandsusan.com

Link to comment
  • Replies 4
  • Views 762
  • Created
  • Last Reply

Top Posters In This Topic

On 3/13/2022 at 2:26 AM, janandsusan said:

@tuanphanThis worked perfectly to change the button width, thank you! The button corners are still not rounded (on hover) -- is there a way to add this?

Try change to this

.image-button-inner {
    display: inline-block;
    border-radius: 10px;
}

 

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

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.