Jump to content

center desktop nav on mobile

Recommended Posts

Site URL: https://leo-weber.com/

Hi!

I put the desktop menu on mobile so the smooth scrolling works

 

.header-title-logo img {
    max-height: 150px !important;
}
.header .header-title-nav-wrapper .header-nav {
    display: block !important;
}
.header .header-burger {
  display: none !important;
}

 

Now I wanted to have the 3 nav items in one line and centered below the website title and cart.
please help I'm lost.... 😉

Bildschirmfoto 2022-07-08 um 14.30.39.png

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Don't remove any code in your current code

Add to Design > Custom CSS

@media screen and (max-width:767px) {
.header-title-nav-wrapper {
    flex-direction: column;
}
.header-nav {
    width: 100% !important;
}
.header-nav-item {
    margin-left: 2vw !important;
    margin-right: 2vw !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!)

Link to comment

Don't remove any code in your current code

Add to Design > Custom CSS

@media screen and (max-width:767px) {
a#site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    top: 50px;
}
}

 

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.