Jump to content

Mobile Navigation off screen

Go to solution Solved by sorca_marian,

Recommended Posts

Hi,

I'm new to CSS code - using the code below to customise my desktop navigation bar but is seems to be making the mobile navigation off centre so the cart icon is off screen and the logo isn't central. Any help would be appreciated!

 

/* Navigation */

.header-title-nav-wrapper {
  flex: 1 0 85% !important;
  flex-wrap: nowrap !important;
}
.header-nav {
  width: 100% !important;
  flex: 1 1 100% !important;
}
.header-title-nav-wrapper {
    flex: 1 0 80% !important;
}

/* change header nav active style */
.header-nav-item--active a {
  color: #ff6900 !important;
  background-image: none !important;
}

/* add header nav hover effect */
div.header-nav-item a:hover {
    opacity: 0.5 !important;
}
div.header-nav-item a {
    transition: all 0.4s !important;
}

 

Screenshot (29).png

Link to comment
  • Solution

Hi,

Add the below code in Custom CSS below all existing code

@media (max-width: 767px) {
    .header-title-nav-wrapper {
        flex-basis : calc(100% - 75px - 75px)!important;
    }
}

 

Screenshot 2024-03-14 at 17.44.54.png

Link to comment
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.