"Affix with Scrollspy "
Bootstrap 3.0.0 Snippet by Geniusone

<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 ----------> <body data-spy="scroll" data-target="#nav" data-offset="443"> <header id="headline"> <div class="row" id="full-width"> <div class="col-md-3" id="portrait"> <img src="holder.js/317x443" class="text-center bottom-align"> </div> <div class="col-md-9" id="tagline"> <h1>Follow me @TimLamber </br>and enjoy this affix scrollspy</h1> <h3>with bootstrap3.0!</h3> </div> </div> </header> <div id="content"> <div id="nav" data-spy="affix" data-offset-top="443"> <nav class="navbar navbar-affix-top navbar" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="brand1" href="#why"><img src="holder.js/228x63"></a> </div> <div class="collapse navbar-collapse navbar-ex1-collapse navbar-right"> <ul class="nav navbar-nav"> <li><a href="#pourquoi">Why why why ?</a></li> <li><a href="#comment">How How How</a></li> <li><a href="#rdv">Action call</a></li> <li><a href="#bio">Who who who</a></li> </ul> </div> </nav> </div> <section id="pourquoi"> <div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title">This is adapted from http://thomaslissajoux.github.io/ </h2> </div> <div class="panel-body"> <div class="row"> <div class="col-md-4"> <h3>Lorem ipsum dolor</br> </h3> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> </div> <div class="col-md-4"> <h3>Lorem ipsum dolor</br> </h3> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> </div> <div class="col-md-4"> <h3>Lorem ipsum dolor sit amet consectetur</h3> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> </div> </div> </div> </div> </section> <section id="comment"> <div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title">Lorem ipsum dolor sit amet 1 ?</h2> </div> <div class="panel-body"> XXXXXX </div> </div> </section> <section id="rdv"> <div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title">Lorem ipsum dolor sit amet 2 ?</h2> </div> <div class="panel-body"> XXXXXX </div> </div> </section> <section id="bio"> <div class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title">Who am I</h2> </div> <div class="panel-body"> XXXXXX </div> </div> </section> </div> <footer> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim </footer> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc2/js/bootstrap.min.js"></script> <script> $('#navbar').scrollspy(); </script> </body></html>
html { font-size:100%; } body { font-size:62.5%; } .navbar-nav { font-size: 1.4em; } html, body, section, .panel, .panel-body { height:100%; min-height:100%; vertical-align: center; float: none; } section { padding-top: 65px; margin-top: -65px; margin-bottom: 30px; } #full-width, #portrait, #tagline { margin-left: 0px; margin-right: 0px; padding-left: 0px; padding-right: 0px; } #nav.affix { position: fixed; top: 0; width: 100%; z-index:10; } .navbar-nav li.active:after { content: " ."; display: block; text-indent: -99em; border-bottom: 0.8em solid #fff; border-left: 0.8em solid transparent; border-right: 0.8em solid transparent; border-top: none; height: 0px; margin-left: -.8em; margin-right: auto; margin-top: 3px; position: absolute; left: 50%; width: 1px; } .navbar .nav .active > a { background-color: none; background: 0 !important; color: #FFF !important; box-shadow: none !important; -webkit-box-shadow: none !important; } .navbar { background-color: #CCCCCC; border-top: 1px solid #827850; border-bottom: 1px solid #827850; } .navbar-header { padding-left: 40px; } h1, h2, h3 { text-align: center; } h1 { font-size: 4em; line-height: 1.4em; margin-top: 50px; margin-bottom: 50px; } h2.panel-title { color: #827850; font-family: 'Gudea', sans-serif; font-size: 3em; } h3 { font-family: 'Gudea', sans-serif; color : #273D54; line-height: 1.25em; font-size: 2.4em; } p { font-size: 1.5em; text-align: justify; } #headline { background-color: #C2B377; } #headline h1 { color: #FFFFFF; font-family: 'Racing Sans One', cursive; text-shadow: 1px 1px 2px rgba(39, 39, 66, 1); } #portrait { text-align: center; } .panel-body { min-height: 600px; } footer { font-family: 'Gudea', sans-serif; line-height: 1.25em; font-size: 1.5em; height: 100px; color: #999; padding-top: 20px; padding-left: 20px; background-color : #273D54; }

Related: See More


Questions / Comments: