"side nav"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/nikhil/pen/sicrK?limit=all&page=31&q=contact+" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script> <style class="cp-pen-styles">@import url("//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css"); .menu, .menu-bar { position: fixed; top: 0; left: 0; height: 100%; list-style-type: none; margin: 0; padding: 0; background: #f7f7f7; z-index:10; overflow:hidden; box-shadow: 2px 0 18px rgba(0, 0, 0, 0.26); } .menu li a{ display: block; text-indent: -500em; height: 5em; width: 5em; line-height: 5em; text-align:center; color: #72739f; position: relative; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: background 0.1s ease-in-out; } .menu li a:before { font-family: FontAwesome; speak: none; text-indent: 0em; position: absolute; top: 0; left: 0; width: 100%; height: 100%; font-size: 1.4em; } .menu li a.search:before { content: "\f002"; } .menu li a.archive:before { content: "\f187"; } .menu li a.pencil:before { content: "\f040"; } .menu li a.contact:before { content: "\f003"; } .menu li a.about:before { content: "\f007"; } .menu li a.home:before { content: "\f039"; } .menu-bar li a:hover, .menu li a:hover, .menu li:first-child a { background: #267fdd; color: #fff; } .menu-bar{ overflow:hidden; left:5em; z-index:5; width:0; height:0; transition: all 0.1s ease-in-out; } .menu-bar li a{ display: block; height: 4em; line-height: 4em; text-align:center; color: #72739f; text-decoration:none; position: relative; font-family:verdana; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: background 0.1s ease-in-out; } .menu-bar li:first-child a{ height:5em; background: #267fdd; color: #fff; line-height:5 } .para{ color:#033f72; padding-left:100px; font-size:3em; margin-bottom:20px; } .open{ width:10em; height:100%; } @media all and (max-width: 500px) { .container{ margin-top:100px; } .menu{ height:5em; width:100%; } .menu li{ display:inline-block; float:left; } .menu-bar li a{ width:100%; } .menu-bar{ width:100%; left:0; height:0; } .open{ width:100%; height:auto; } .para{ padding-left:5px; } } @media screen and (max-height: 34em){ .menu li, .menu-bar { font-size:70%; } } @media screen and (max-height: 34em) and (max-width: 500px){ .menu{ height:3.5em; } }</style></head><body> <ul class="menu"> <li title="home"><a href="#" class="menu-button home">menu</a></li> <li title="search"><a href="#" class="search">search</a></li> <li title="pencil"><a href="#" class="pencil">pencil</a></li> <li title="about"><a href="#" class="active about">about</a></li> <li title="archive"><a href="#" class="archive">archive</a></li> <li title="contact"><a href="#" class="contact">contact</a></li> </ul> <ul class="menu-bar"> <li><a href="#" class="menu-button">Menu</a></li> <li><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li><a href="#">Editorial</a></li> <li><a href="#">About</a></li> </ul> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >$(document).ready(function(){ $(".menu-button").click(function(){ $(".menu-bar").toggleClass( "open" ); }) }) //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: