Jump to content

Fix button hover from spilling out from the button

Recommended Posts

Site URL: https://danielleedneyhomes.squarespace.com/

Im trying to fix the hover on my button, currently the hover goes outside the actual button

its in a code block with:

 <div class="button">
   <span style="
border: 2px solid #fff;
border-color: #fff;
border-radius:5px;
padding-right:1.4em;
padding-left:1.4em;
padding-top:.35em;
padding-bottom:.35em;
font-size: 13px;
font-weight: 600;
"> CONTACT </span>
<p>
  

and then in the CSS is  

.button {
  transition-duration: 0.4s;

}

.button:hover {
  background-color: #000; /* Green */
  color: white;
}

 

it's the contact button at the bottom. 

 

Thanks!

 

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, skywalker888 said:

Site URL: https://danielleedneyhomes.squarespace.com/

Im trying to fix the hover on my button, currently the hover goes outside the actual button

its in a code block with:

 <div class="button">
   <span style="
border: 2px solid #fff;
border-color: #fff;
border-radius:5px;
padding-right:1.4em;
padding-left:1.4em;
padding-top:.35em;
padding-bottom:.35em;
font-size: 13px;
font-weight: 600;
"> CONTACT </span>
<p>
  

and then in the CSS is  

.button {
  transition-duration: 0.4s;

}

.button:hover {
  background-color: #000; /* Green */
  color: white;
}

 

it's the contact button at the bottom. 

 

Thanks!

 

Can you give the password to access your url?

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.