Jump to content

Menu Module - How to reduce spacing

Go to solution Solved by Spark-Plugin,

Recommended Posts

  • Replies 7
  • Views 94
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Just add this code into pages > web tools > custom css:

.menu-block .menu-selector label{
padding: 5px !important;
}

Here, you can customize the padding size  as you needed to make perfect your site.

Posted (edited)

Hi @abibacon

Thanks very much for your quick reply. I'm sorry if I wasn't clear, I was more talking about the vertical spacing btw each of those elements - inside one of the menu's thumbnail : please see screenshot attached. Would it be possible ? Capturedecran2024-11-28a10_46_50.thumb.png.377add31db5b6c53061bb860f3fc83e3.png

 

Capturedecran2024-11-28a17_21_57.thumb.png.c696a96108d11e6c3654d883fadccaff.png

 

Thanks very much, 

Lucie

Edited by LucieGbt1993
Posted
On 11/28/2024 at 8:44 PM, LucieGbt1993 said:

Hi @abibacon

Thanks very much for your quick reply. I'm sorry if I wasn't clear, I was more talking about the vertical spacing btw each of those elements - inside one of the menu's thumbnail : please see screenshot attached. Would it be possible ? Capturedecran2024-11-28a10_46_50.thumb.png.377add31db5b6c53061bb860f3fc83e3.png

 

Capturedecran2024-11-28a17_21_57.thumb.png.c696a96108d11e6c3654d883fadccaff.png

 

Thanks very much, 

Lucie

You can use this to Website Tools > Custom CSS

div.menu-item {
    padding-bottom: 1px !important;
}

 

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!)

  • Solution
Posted

Hi @LucieGbt1993, for that padding, please add this code, obviously you can adjust it:

711_2x_shots_so.thumb.png.6cbe7d56069de9e34ebc160f42607155.png

/* Menu Section Styling */
.menu-block .menu-section + .menu-section {
    /* This targets the second .menu-section element when it directly follows another .menu-section */
    margin-top: 0em;  /* Removes any extra spacing (sets margin-top to 0) between consecutive menu sections */
}

 

- 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.