Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  • Thread Tools
  • Rate This Thread
  1. #1
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hamburger menu won't scroll

    zeckoShop

    I'm having an issue with my hamburger menu. It appears on mobile. I have .js set so when you click on it, it toggles a class that adds position:fixed to stop the site from scrolling. I am not sure if this is the issue of it's CSS, but when the menu is open, and I've added enough li's to warrant a scroll, I can't scroll on it.

    Any ideas? On my phone it just cuts off and won't allow a scroll.

  2. #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,808
    Thanks
    6
    Thanked 1,159 Times in 1,130 Posts
    I haven’t looked at your code yet but you need to explicitly tell the element that it can scroll if the content gets larger than the element. Add max-height: 100% and overflow: auto to the menu wrapper and see if that helps.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •