Jump to content

Custom Hover Affect on Button

Recommended Posts

I'm trying to add custom code to specific buttons that removed the background color and instead adds an  underline on hover. I've got that figured out but I want the underline to only be present over the text and not the full size of the button. I also tried just making a text block with a hyperlink that had the animation show up on hover but it seems to be adding two lines, one very thin and one thicker right below it. Here is the code I have for the specific blocks:

 

#block-yui_3_17_2_1_1691079017351_15719 .sqs-block-button-element:hover {
  background-color: transparent !important;
    color: black;
  border-bottom: .5px solid currentColor;
}

 

Link to comment
  • Replies 0
  • Views 824
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.