Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <div class="container-fluid"> <style scoped="true"> article.scrollspy-example { position: relative; overflow: scroll; width: 350px; height: 160px; } </style> <nav id="scrollspy-nav" class="navbar navbar-default"> <ul class="nav nav-pills"> <li class="nav-item"><a class="nav-link" href="#bast">About</a></li> <li class="nav-item"><a class="nav-link" href="#brogan">Products</a></li> <li class="nav-item"><a class="nav-link" href="#calceology">Contact</a></li> </ul> </nav> <article data-spy="scroll" data-target="#scrollspy-nav" data-offset="0" class="scrollspy-example"> <h4 id="bast">About Us</h4> <p>We've been selling all sorts of stuff to do with feet since we started.</p> <p>Long story short...</p> <p>(That is all).</p> <h4 id="brogan">Products</h4> <p>We have all sorts of products, including, but not limited to:</p> <ul> <li>Boots</li> <li>Shoes</li> <li>Socks</li> <li>Bootstraps</li> </ul> <h4 id="calceology">Contact Us</h4> <p>Do you really think we'd give out our contact details? </p> <p>No... really?</p> <p>Alright! Here they are:</p> <ol> <li>Walk north</li> <li>Turn right at the corner</li> <li>Turn right at the next corner</li> <li>Then right again</li> <li>Then walk back to where you started.</li> </ol> </article> </div> <!-- jQuery library --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Bootstrap JS --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <!-- Initialize Bootstrap functionality --> <script> // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) </script>
Preview