Materialize: Mobile Collapse Button + Fixed Navbar Overlay (Pop Up Navigation Overlayed)

Created on 18 Nov 2016  路  3Comments  路  Source: Dogfalo/materialize

I set my navigation bar to be in fixed position.
But when the browser is resized so that the hamburger menu is visible.
And when I click the hamburger menu and to the hide menu option, the menu options is also overlayed

You can view demo here

Most helpful comment

You can put navbar-fixed class on nav and close nav as soon as top navigation bar code ends. Ex:

<nav class="blue-grey darken-4 navbar-fixed">
    <a href="#!" class="brand-logo">Logo</a>
    <a href="#" data-activates="slide-in" class="button-collapse"><i class="material-icons">menu</i></a>
 </nav>
 <ul class="right hide-on-med-and-down">
    <li><a href="sass.html">Sass</a></li>
    ...

All 3 comments

You can put navbar-fixed class on nav and close nav as soon as top navigation bar code ends. Ex:

<nav class="blue-grey darken-4 navbar-fixed">
    <a href="#!" class="brand-logo">Logo</a>
    <a href="#" data-activates="slide-in" class="button-collapse"><i class="material-icons">menu</i></a>
 </nav>
 <ul class="right hide-on-med-and-down">
    <li><a href="sass.html">Sass</a></li>
    ...

@kmmbvnr Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruslandzhumaev picture ruslandzhumaev  路  3Comments

ericlormul picture ericlormul  路  3Comments

bradley-varol picture bradley-varol  路  3Comments

PhillippOhlandt picture PhillippOhlandt  路  3Comments

hartwork picture hartwork  路  3Comments