Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Bootstrap Example</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
- <style>
- body {
- position: relative;
- }
- #section1 {padding-top:50px;height:500px;color: #fff; background-color: #1E88E5;}
- #section2 {padding-top:50px;height:500px;color: #fff; background-color: #673ab7;}
- #section3 {padding-top:50px;height:500px;color: #fff; background-color: #ff9800;}
- #section4 {padding-top:50px;height:500px;color: #fff; background-color: #00bcd4;}
- #section5 {padding-top:50px;height:500px;color: #fff; background-color: #009688;}
- </style>
- </head>
- <body data-spy="scroll" data-target=".navbar" data-offset="50">
- <nav class="navbar navbar-inverse navbar-fixed-top">
- <div class="container-fluid">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">Revise Details:</a>
- </div>
- <div>
- <div class="collapse navbar-collapse" id="myNavbar">
- <ul class="nav navbar-nav">
- <li><a href="#section1">1 Station</a></li>
- <li><a href="#section2">2 Names</a></li>
- <li><a href="#section3">3 Contact</a></li>
- <li><a href="#section4">4 Identity</a></li>
- <li><a href="#section5">5 Banking</a></li>
- </ul>
- </div>
- </div>
- </div>
- </nav>
- <div id="section1" class="container-fluid">
- <h1>Stations</h1>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- </div>
- <div id="section2" class="container-fluid">
- <h1>Full Names</h1>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- </div>
- <div id="section3" class="container-fluid">
- <h1>Contact Numbers</h1>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- </div>
- <div id="section4" class="container-fluid">
- <h1>Identity Details</h1>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- </div>
- <div id="section5" class="container-fluid">
- <h1>Banking Details</h1>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- <p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement