Jump to content

Add background fill padding to header hover states

Recommended Posts

Posted

I added this CSS to my header buttons:

 

.header-nav a:hover{
  background:white!important;
    color:#dcdad5!important;
}

a {
text-decoration: none !important;
}

header a {
  background-image: none !important;
}

 

My issue now, is that the background color block (background:white!important;)  is cut off right at the edge of the text on both sides. Does anyone know how I can extend the background a few pixels on both sides on hover?

thank you.

 

 

  • Replies 3
  • Views 359
  • Created
  • Last Reply

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.