Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Bootstrap Example</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  9. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  10. <style>
  11. body {
  12. position: relative;
  13. }
  14. #section1 {padding-top:50px;height:500px;color: #fff; background-color: #1E88E5;}
  15. #section2 {padding-top:50px;height:500px;color: #fff; background-color: #673ab7;}
  16. #section3 {padding-top:50px;height:500px;color: #fff; background-color: #ff9800;}
  17. #section4 {padding-top:50px;height:500px;color: #fff; background-color: #00bcd4;}
  18. #section5 {padding-top:50px;height:500px;color: #fff; background-color: #009688;}
  19. </style>
  20. </head>
  21. <body data-spy="scroll" data-target=".navbar" data-offset="50">
  22.  
  23. <nav class="navbar navbar-inverse navbar-fixed-top">
  24. <div class="container-fluid">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
  27. <span class="icon-bar"></span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. </button>
  31. <a class="navbar-brand" href="#">Revise Details:</a>
  32. </div>
  33. <div>
  34. <div class="collapse navbar-collapse" id="myNavbar">
  35. <ul class="nav navbar-nav">
  36. <li><a href="#section1">1 Station</a></li>
  37. <li><a href="#section2">2 Names</a></li>
  38. <li><a href="#section3">3 Contact</a></li>
  39. <li><a href="#section4">4 Identity</a></li>
  40. <li><a href="#section5">5 Banking</a></li>
  41. </ul>
  42. </div>
  43. </div>
  44. </div>
  45. </nav>
  46.  
  47. <div id="section1" class="container-fluid">
  48. <h1>Stations</h1>
  49. <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>
  50. <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>
  51. </div>
  52.  
  53. <div id="section2" class="container-fluid">
  54. <h1>Full Names</h1>
  55. <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>
  56. <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>
  57. </div>
  58.  
  59. <div id="section3" class="container-fluid">
  60. <h1>Contact Numbers</h1>
  61. <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>
  62. <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>
  63. </div>
  64.  
  65. <div id="section4" class="container-fluid">
  66. <h1>Identity Details</h1>
  67. <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>
  68. <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>
  69. </div>
  70.  
  71. <div id="section5" class="container-fluid">
  72. <h1>Banking Details</h1>
  73. <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>
  74. <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>
  75. </div>
  76.  
  77.  
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement