Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Fullscreen Overlay Nav"
Bootstrap 4.0.0 Snippet by
yui.napassorn
4.0.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.8K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-expand-lg"><a class="navbar-brand" href="#">Overlay Nav</a> <div class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><i class="fa fa-bars"></i></div> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item active"><a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a></li> <li class="nav-item"><a class="nav-link" href="#">Link</a></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"><a class="dropdown-item" href="#">Action</a><a class="dropdown-item" href="#">Another action</a> <div class="dropdown-divider"></div><a class="dropdown-item" href="#">Something else here</a> </div> </li> <li class="nav-item"><a class="nav-link" href="#">Disabled</a></li> </ul> </div> </nav>
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'); .navbar{ background:#b8b7b6 } .navbar .navbar-brand{ color: white; font-weight: bold; text-transform: uppercase; } .navbar .navbar-toggler{ z-index:2; color:#000; } @media only screen and (min-width:1200px){ .navbar .navbar-toggler{z-index:unset} } .navbar .navbar-collapse{ top:0; left:0; height:100%; width:100%; position:fixed; z-index:1; padding:5%; background:#fff; transition: 0s; } @media only screen and (min-width:1200px){ .navbar .navbar-collapse{ top:unset; left:unset; height:0; width:100%; position:unset; z-index:0; padding:unset; background:unset } } .navbar .navbar-collapse .navbar-nav{ margin:0 } .navbar .nav-link{ color: black; } @media only screen and (min-width:1200px){ .navbar .nav-link{ color: #fff; } }
Related:
See More
Free Template
Argon Design System
90.4K
62
Fullscreen Background Carousel
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76