Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Burger Nav Menu on Desktop Not Working on Scroll


kethee

Question

Site URL: https://heron-snail-244c.squarespace.com/

Hi all!

Ive set my desktop view to collapse into a burger menu when the screen is smaller than 1050px. It works fine unless I scroll at all, in which case the drop down menu is no longer visible when I click the burger. This only happens on desktop, its fine on mobile. Can someone please help? Below is the custom CSS Im using. TIA!

Link is: https://heron-snail-244c.squarespace.com/ (not yet published)
PW is: N3w$ton3

@media screen and (max-width:1050px) {
  .header-nav, .header-actions { display: none!important;}
  .header-burger { display: flex!important;}
  .header--menu-open .header-menu {opacity: 1; visibility: visible; width:50%}
  .header-menu .header-menu-nav a {font-size:1.25rem; padding: 0rem}
  }

 

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
16 hours ago, kethee said:

Site URL: https://heron-snail-244c.squarespace.com/

Hi all!

Ive set my desktop view to collapse into a burger menu when the screen is smaller than 1050px. It works fine unless I scroll at all, in which case the drop down menu is no longer visible when I click the burger. This only happens on desktop, its fine on mobile. Can someone please help? Below is the custom CSS Im using. TIA!

Link is: https://heron-snail-244c.squarespace.com/ (not yet published)
PW is: N3w$ton3

@media screen and (max-width:1050px) {
  .header-nav, .header-actions { display: none!important;}
  .header-burger { display: flex!important;}
  .header--menu-open .header-menu {opacity: 1; visibility: visible; width:50%}
  .header-menu .header-menu-nav a {font-size:1.25rem; padding: 0rem}
  }

 

Remove your code & add new code

@media screen and (min-width:768px) and (max-width:1050px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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