Jump to content

How To Make The Burger Menu In Mobile Smaller With CSS

Go to solution Solved by tuanphan,

Recommended Posts

You mean burger icon size or burger menu items?

With burger icon, you can add this to Website Tools (under Not Linked) > Custom CSS

div.burger-inner>div {
    width: 70% !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
18 hours ago, tuanphan said:

You mean burger icon size or burger menu items?

With burger icon, you can add this to Website Tools (under Not Linked) > Custom CSS

div.burger-inner>div {
    width: 70% !important;
}

 

Hello,

Sorry i meant the burger icon size,

This code only decreases the width, is there not a CSS that keeps the same width but just "minimizes"/"shrinks" the same, so the burger icon is basically the same width and length but just shrink?

Link to comment
On 11/2/2023 at 9:51 PM, tuanphan said:

So you mean reduce each line (3 lines) height

or space between lines?

I guess maybe the space between the lines?

I am just trying make the overall burger icon smaller...can't find a CSS, but have seen it done.   Here's an example

You can see how much smaller it is compared to mine, but it keeps the same width. 

Thanks

 

IMG_4881.jpg

Link to comment
  • Solution

Add this code to Website > Website Tools (under Not Linked) > Custom CSS

body:not(.header--menu-open) {
div.burger-inner>div {
    width: 70% !important;
}
.top-bun {
    transform: translatey(-5.5px) !important;
}
.bottom-bun {
    transform: translatey(5.5px) !important;
}
}

image.png.f7e11ddc327c9b9e589891823f543e96.png

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
11 hours ago, tuanphan said:

Add this code to Website > Website Tools (under Not Linked) > Custom CSS

body:not(.header--menu-open) {
div.burger-inner>div {
    width: 70% !important;
}
.top-bun {
    transform: translatey(-5.5px) !important;
}
.bottom-bun {
    transform: translatey(5.5px) !important;
}
}

image.png.f7e11ddc327c9b9e589891823f543e96.png

Thank you so much! 

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.