-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navbar-fixed AND mobile collapsable menue. #1664
Comments
You didn't include the initialisation code as indicated in http://materializecss.com/navbar.html#mobile-collapse :
|
Sorry, i forgot to include that here in the issue, but it is in my project code. And as you can se in your codepen the navbar-fixed at the top is not "under" the faded black overlay from the collaps menu. That is the problem. |
You are right, I was under the impression this issue was solved ages ago: #437 #393 What I did as a workaround was quite convoluted as I was trying to go around other issues that existed at the time (and also keep the fixed header only on large resolutions), but seems to be still working so I'll add it to this codepen, you can probably simplify it: http://codepen.io/anon/pen/XbZYPg |
Sweet @carlosperate! I just came across the same error with the |
Increasing the z-index of #sidenav-overlay from 997 to 998 worked for me. The overlay now covers .navbar-fixed. |
Thanks to @carlosperate codepen i saw that my In the navbar docs it says to put the Maybe could add a comment about that in the docs? |
I will let a contributor close this issue or give it a feature tag. |
plz have a look at this. |
Please close |
dude , what problme for my code ?? why still like this |
If you want to have a fixed navbar with a collapsible menu you have to put the side-nav ul outside the navbar-fixed. I think it has to do with some z-index values for the sidenav-overlay and navbar-fixed as demonstrated here. |
I think 'outside the side-nav' should be in docs @Dogfalo |
Decreasing the z-index of #sidenav-overlay from 997 to 993 worked for me. |
Hi!
This is a promising framework, I like it!
I wonder though, it seems like there is no solution for having both the
navbar-fixed
and also use thenav-mobile
button-collapse
. As of now, the z-indexes is disturbing each other.The error:
When the collapse mobile nav is pulled out, the fixed-navbar (at the top) is "above" the faded area.
My code
Here is my code that causes the problem.
I hope you guys will take a look at this soon because I think that the combination of
navbar-fixed
and the mobile slide out menu will be very common.Or perhaps am I just doing it wrong?
And again, sweet framework!
The text was updated successfully, but these errors were encountered: