question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cant use a slideNav with a fixed navbar

See original GitHub issue

If you have a top navigation bar with a class of .navbar-fixed, then any sideNavs within that navbar, will render underneath the overlay in Chrome 39.

No matter what z-index you set on the sideNav, it wont display higher than it’s fixed parent. This makes it unusable - as any attempt to click a link, triggers the event to dismiss the sideNav.

sidenav-issue

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
SunilDSKcommented, Mar 29, 2017

This just fixed my problem.

<!-- HTML-->
<div class="navbar-fixed>
       <nav>
            <div class="nav-wrapper">
                <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
                <ul class="right hide-on-med-and-down">
                    <li><a class="waves-effect waves-light" href="#header">Intro</a></li>
                                                               . . . . 
                    <li><a class="waves-effect waves-light" href="#blog">Blog</a></li>
                </ul>
                <ul class="side-nav" id="mobile-demo">
                    <li><a href="#header">Intro</a></li>
                                            . . . . .
                    <li><a href="#blog">Blog</a></li>
                </ul>
            </div>
        </nav>
</div>

<!--CSS-->
.navbar-fixed{
    z-index: 1000;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix navbar and sidebar to stick together when scrolling ...
Its due to the fixed position of sidebar, Method 1 Same setup and use js to make sidebar move upwards as u scroll...
Read more >
How To Create a Fixed Menu - W3Schools
The navigation bar will stay at the top of the page while scrolling ... To create a fixed top menu, use position:fixed and...
Read more >
Fixed top navbar example for Bootstrap
This example is a quick exercise to illustrate how fixed to top navbar works. As you scroll, it will remain fixed to the...
Read more >
Side navigation bar codepen. Add a Font Awesome icon to ...
Cant use a slideNav with a fixed navbar #437. Normally show sidebar menu left side and toggle button top right corner as you...
Read more >
Not able to fix carousel to go beneath the navbar... - Treehouse
I followed the instructions the video to use z-index to have the nav bar to be on top of the carousel with no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found