Jump to content

Margin top dropdown menu

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 3
  • Views 801
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

My idea is

  • Add a blank item to top of Dropdown Menu
  • Use code to make this item invisible
  • Use code to make Dropdown Transparent
  • Use code to set Dropdown Items (from item 2, 3, 4...) background color

Add a blank item to top of Dropdown Menu, then

Don't remove any code in your current code then use this code in Custom CSS box

a.header-nav-folder-title:hover+div, .header-nav-folder-content {
    padding-top: 0 !important;
    background-color: Transparent !important;
}

div.header-nav-folder-content>div:first-child {
    visibility: hidden;
    opacity: 0;
}

div.header-nav-folder-content>div:not(:first-child) {
    background-color: var(--siteBackgroundColor);
    padding-left: 30px !important;
    padding-right: 30px !important;
}
div.header-nav-folder-content>div:nth-child(2) {
    padding-top: 10px !important;
}

image.png.c3d6bf2767467d4a3d454030e73160d0.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.