Jump to content
Go to solution Solved by Spark-Plugin,

Recommended Posts

  • Replies 2
  • Views 274
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted

Hi @Soohyun, give this code a try and let me know how it goes:

  1. Navigate to Pages > Website Tools > Custom CSS.
  2. Paste the code into the CSS editor.
  3. Hit Save and you’re done
/* Changes the text color of dropdown menu items on hover */
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item:hover a {
    color: #fff !important; /* Change the color value (#fff) to any desired color code */
    /* Instructions: 
       - The color property specifies the text color of the dropdown menu items when hovered over.
       - You can change `#fff` to any valid color code (e.g., #000000 for black, #d4af37 for gold, etc.).
    */
}

/* Makes the dropdown menu automatically adjust its width */
.header-nav-folder-content {
    width: auto !important; /* The dropdown will automatically adjust to the content width */
    min-width: unset !important; /* Removes any minimum width restriction */
    /* Instructions:
       - The width property is set to `auto` so the dropdown width matches the content size.
       - `min-width: unset` ensures there is no minimum width constraint, but you can change it to a specific value if needed.
    */
}

 

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

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.