index.html 3.94 KB
Newer Older
1
2
3
4
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
5
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
Zlatan Vasović's avatar
Zlatan Vasović committed
6
    <meta name="viewport" content="width=device-width, initial-scale=1">
7
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8
9
    <meta name="description" content="">
    <meta name="author" content="">
10
    <link rel="icon" href="../../favicon.ico">
11

Nicole's avatar
Nicole committed
12
    <title>Sticky Footer Navbar Template for Bootstrap</title>
13
14

    <!-- Bootstrap core CSS -->
wangsai's avatar
wangsai committed
15
    <link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
16
17

    <!-- Custom styles for this template -->
Nicole's avatar
Nicole committed
18
    <link href="sticky-footer-navbar.css" rel="stylesheet">
19

20
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
wangsai's avatar
wangsai committed
21
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
22
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
23

XhmikosR's avatar
XhmikosR committed
24
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
25
    <!--[if lt IE 9]>
XhmikosR's avatar
XhmikosR committed
26
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
XhmikosR's avatar
XhmikosR committed
27
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
28
    <![endif]-->
29
30
31
32
  </head>

  <body>

33
    <!-- Fixed navbar -->
34
    <nav class="navbar navbar-default navbar-fixed-top">
35
36
      <div class="container">
        <div class="navbar-header">
Patrick H. Lauke's avatar
Patrick H. Lauke committed
37
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
38
39
40
41
42
43
            <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="navbar-brand" href="#">Project name</a>
44
        </div>
Patrick H. Lauke's avatar
Patrick H. Lauke committed
45
        <div id="navbar" class="collapse navbar-collapse">
46
47
48
49
50
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
51
52
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
53
54
55
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
56
                <li role="separator" class="divider"></li>
57
58
59
60
61
62
63
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
64
      </div>
65
    </nav>
66

67
68
69
70
    <!-- Begin page content -->
    <div class="container">
      <div class="page-header">
        <h1>Sticky footer with fixed navbar</h1>
71
      </div>
72
73
      <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 with <code>padding-top: 60px;</code> on the <code>body > .container</code>.</p>
      <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
74
75
    </div>

76
    <footer class="footer">
77
      <div class="container">
78
        <p class="text-muted">Place sticky footer content here.</p>
79
      </div>
80
    </footer>
81

82

83
84
    <!-- Bootstrap core JavaScript
    ================================================== -->
85
    <!-- Placed at the end of the document so the pages load faster -->
XhmikosR's avatar
XhmikosR committed
86
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
87
    <script src="../../dist/js/bootstrap.min.js"></script>
88
89
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
90
  </body>
91
</html>