Jump to content

Make mobile menu for entire site

Recommended Posts

  • Replies 10
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Add this Website > Website Tools > Custom CSS

.header-menu-nav-folder[data-folder="root"] {
    overflow: hidden;
}

body.header--menu-open .header-title-logo>a {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

div.header-menu-nav-item a {
    margin: 10px;
    font-size: 18px;
}

 

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

Link to comment
On 9/17/2023 at 11:19 AM, mdegortari said:

the logo is still not centered with the menu and now it has an animation can you help me fix it?

 

Try this new code

.header-menu-nav-folder[data-folder="root"] {
    overflow: hidden;
}

body.header--menu-open .header-title-logo>a {
    position: absolute;
    left: calc(~"50% + 25px") !important;
    transform: translateX(-50%) !important;
}

div.header-menu-nav-item a {
    margin: 10px;
    font-size: 18px;
}

Animation: You mean menu items jump up when menu is open?

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

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.