Fixed and Extended Nav w/ Tabs + Fixed SideNav pushes the Header the to right
See original GitHub issueDescription
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)-
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 -
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue. Is there any solution to this?
Closed due inactivity. Feel free to reopen it, if it’s still necessary.