Jump to content

dropdown folder increase clickable link box size

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.gallerymilmar.com/

If you hover over the "artist" tab you will see my custom dropdown menu that highlights the mouseovered box. If you want to go into either link, you have to precisely hover over the text, and I want the entire black box to be interactable instead of just text. I can already achieve that by having no padding at all, aka deleing "padding: .7em 1em;" line, but then it looks ugly. Here is the code responsible for what I have currently:

.header-nav .header-nav-item--folder .header-nav-folder-content{
   padding: 0;
       padding: .7em 1em;
     background: #121212 ;
     a {color: white !important;}

Thank you in advance!

Link to comment
  • Solution

So move the padding to the a tag instead

.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
  padding: 0
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item a {
  padding: .7em 1em;



Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.