Sticky Footer Navbar Template


SUBMITTED BY: Guest

DATE: Nov. 13, 2013, 8:37 p.m.

FORMAT: Text only

SIZE: 4.3 kB

HITS: 3920

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
  10. <title>Sticky Footer Navbar Template for Bootstrap</title>
  11. <!-- Bootstrap core CSS -->
  12. <link href="../../dist/css/bootstrap.css" rel="stylesheet">
  13. <!-- Custom styles for this template -->
  14. <link href="sticky-footer-navbar.css" rel="stylesheet">
  15. <!-- Just for debugging purposes. Don't actually copy this line! -->
  16. <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  17. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  18. <!--[if lt IE 9]>
  19. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  20. <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  21. <![endif]-->
  22. </head>
  23. <body>
  24. <!-- Wrap all page content here -->
  25. <div id="wrap">
  26. <!-- Fixed navbar -->
  27. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  28. <div class="container">
  29. <div class="navbar-header">
  30. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  31. <span class="sr-only">Toggle navigation</span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. </button>
  36. <a class="navbar-brand" href="#">Project name</a>
  37. </div>
  38. <div class="collapse navbar-collapse">
  39. <ul class="nav navbar-nav">
  40. <li class="active"><a href="#">Home</a></li>
  41. <li><a href="#about">About</a></li>
  42. <li><a href="#contact">Contact</a></li>
  43. <li class="dropdown">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  45. <ul class="dropdown-menu">
  46. <li><a href="#">Action</a></li>
  47. <li><a href="#">Another action</a></li>
  48. <li><a href="#">Something else here</a></li>
  49. <li class="divider"></li>
  50. <li class="dropdown-header">Nav header</li>
  51. <li><a href="#">Separated link</a></li>
  52. <li><a href="#">One more separated link</a></li>
  53. </ul>
  54. </li>
  55. </ul>
  56. </div><!--/.nav-collapse -->
  57. </div>
  58. </div>
  59. <!-- Begin page content -->
  60. <div class="container">
  61. <div class="page-header">
  62. <h1>Sticky footer with fixed navbar</h1>
  63. </div>
  64. <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within <code>#wrap</code> with <code>padding-top: 60px;</code> on the <code>.container</code>.</p>
  65. <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
  66. </div>
  67. </div>
  68. <div id="footer">
  69. <div class="container">
  70. <p class="text-muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
  71. </div>
  72. </div>
  73. <!-- Bootstrap core JavaScript
  74. ================================================== -->
  75. <!-- Placed at the end of the document so the pages load faster -->
  76. <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
  77. <script src="../../dist/js/bootstrap.min.js"></script>
  78. </body>
  79. </html>

comments powered by Disqus