Jump to content

Navigation background color change on hover fill to full width of dropdown menu

Go to solution Solved by tuanphan,

Recommended Posts

Hello, I currently have custom css to make my navigation background change color on hover, but the background color only goes part way on the width of the dropdown menu. I'm new to coding, so I'm not sure how to fix this on my own but I was wondering if anyone knew how to fix this. I couldn't find any posts describing how to do this based on my verbiage for a search, but that may be because I do not know the correct terms for things. 

For example, it currently looks like this (how the highlight section has no padding on the sides of the word "about" & ends within the margins of the dropdown menu on "employment",


but i would like it to look more like this and stretch the whole way across the dropdown:


Thanks in advance!!

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
15 hours ago, gibgib said:

Don't remove any code in your current code. Add this to Design > Custom CSS

div.header-nav-folder-content {
    padding: 0 !important;
div.header-nav-folder-content div a {
    padding: 0.5em 1em !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.