Jump to content

Reduce width of header dropdown, centre dropdown items, and change dropdown background on scroll

Recommended Posts

Hi, 

I am trying to customise my sites header. At the moment I have a dynamic heading on my pages, and I have used some custom code to get the transparent to change to black on scroll. I would like the header dropdown to do the same thing.

I also want to centre the dropdown items in line with the navigation links. I have used some custom code to centre the dropdown but they aren't in line with the nav links.  And I would like to reduce the width of the dropdown. At the moment the clickable padding on the nav links seems too big as the dropdown doesn't change immediately when I move between links (moving from 'products' to 'about' and back to 'products' is glitchy.

Site url: https://tortoise-saffron-fc2h.squarespace.com/about

Password: Turtle2000!

 

@tuanphan perhaps you might be able to help?

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

You can add this to Website > Website Tools (under Not Linked) > Custom CSS

header#header.shrink div.header-nav-folder-content {
    background-color: black !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.