I have a side menu that slides in and out (utilizing Zurb Foundation). The overflow is set to auto
so users can scroll through the menu if it extends beyond the screen.
This functionality is currently supported on these browsers:
- Chrome
- Firefox
- Internet Explorer
- Android Chrome
- Safari iOS
However, it does not work as expected on Safari for OS X:
In this browser, the menu behaves as if its overflow property is set to hidden
, preventing scrolling.
Below is the HTML structure of the menu:
<!-- Off Canvas Menu -->
<aside class="right-off-canvas-menu">
<ul class="side-nav" role="navigation" title="Main Navigation" onmouseover="this.title='';">
[Menu items go here]
</ul>
</aside>
Additionally, here is the corresponding SASS code:
// Off Canvas Styling
// - - - - - - - - - - - - - -
.right-off-canvas-menu {
height: 100%;
max-height: 100vh;
overflow: auto;
-webkit-overflow-scrolling: touch;
}