Jump to content

Width drop down menu

Recommended Posts

Site URL: https://www.groei-praktijk.nl/over-lisette-dragt

Dear all,

When navigating in the menu, there is a drop down menu for 3 folders.

For one of those folders (Lisette Dragt) the light grey colour/block in which the text of the drop down is placed is wider than the text itself.

1st picture shows okay drop down: text and box are about equal in width
2nd picture shows not okay drop down: text is far less wide than the width of the drop down menu box

Can someone provide me with CSS code to adjust the width of the drop down menu according to the text that is contained in it?

Thanks a bunch!!

 

Schermafbeelding 2022-05-23 om 17.06.07.png

Schermafbeelding 2022-05-23 om 17.06.18.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

/* Dropdown auto width */
.header-nav-folder-content {
    width: auto !important;
    min-width: unset !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.