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.

Fixed and Extended Nav w/ Tabs + Fixed SideNav pushes the Header the to right

See original GitHub issue

Description

When using fixed side nav, the other adjacent components needs to have 300 px padding per the documentation.. But this results in the header continuing over beyond the screen as follows (notice the missing right icon links)- screenshot from 2016-12-25 01-15-06

Repro Steps

Here’s the code. It takes care of the issue where we need to put the sidenav out of fixed nave to make it clickable -

Markup -

<header>
    <div class="navbar-fixed">
        <nav class="nav-extended">
            <div class="nav-wrapper">
                <a href="#" class="brand-logo">Logo</a>
                <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 href="sass.html"><i class="material-icons">search</i></a></li>
                    <li><a href="badges.html"><i class="material-icons">view_module</i></a></li>
                    <li><a href="collapsible.html"><i class="material-icons">refresh</i></a></li>
                    <li><a href="mobile.html"><i class="material-icons">more_vert</i></a></li>
                </ul>
                <ul class="tabs tabs-transparent">
                    <li class="tab"><a href="#test1">Test 1</a></li>
                    <li class="tab"><a class="active" href="#test2">Test 2</a></li>
                    <li class="tab disabled"><a href="#test3">Disabled Tab</a></li>
                    <li class="tab"><a href="#test4">Test 4</a></li>
                    <li class="tab"><a href="#test5">Test 5</a></li>
                </ul>
            </div>
        </nav>
    </div>
    <ul class="side-nav fixed" id="mobile-demo">
        <li><a href="#!">First Sidebar Link</a></li>
        <li><a href="#!">Second Sidebar Link</a></li>
        <li class="no-padding">
            <ul class="collapsible collapsible-accordion">
                <li>
                    <a class="collapsible-header">Dropdown<i class="material-icons">arrow_drop_down</i></a>
                    <div class="collapsible-body">
                        <ul>
                            <li><a href="#!">First</a></li>
                            <li><a href="#!">Second</a></li>
                            <li><a href="#!">Third</a></li>
                            <li><a href="#!">Fourth</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
        </li>
    </ul>
</header>

Screenshots / Codepen

This is the assumed header that should display per the code from docs site - screenshot from 2016-12-25 01-20-35

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gimelgcommented, Sep 21, 2017

I’m having the same issue. Is there any solution to this?

0reactions
tomscholzcommented, Jul 8, 2017

Closed due inactivity. Feel free to reopen it, if it’s still necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed header and sidebar pushing content below them
I've created a fixed side nav bar and header and i'd like to create a grid within the content section of the page,...
Read more >
Bootstrap 5 Sidebar Examples - DEV Community ‍ ‍
The sidebar and bottom footer both appear fixed on larger screens. Only the content area is scrollable (when content height allows). On mobile ......
Read more >
How To Create a Side Navigation Menu - W3Schools
Learn how to create an animated, closable side navigation menu. ... content inside this div if you want the side nav to push...
Read more >
Creating a Left-Side Floating Navigation Bar - Web Design/UX ...
Learn how to create a nice looking left side navigation bar that stays fixed in its position as the content to the right...
Read more >
Navbar - Bootstrap
Documentation and examples for Bootstrap's powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, ...
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