"scroll"
Bootstrap 3.0.0 Snippet by evarevirus

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<header class="static-header">
<img src="http://nickaburress.com/images/codepen.png" height="100" height="auto"/>
<nav>
<a href="#section1">Section 1</a>
<a href="#section2">Section 2</a>
<a href="#section3">Section 3</a>
<a href="#section4">Section 4</a>
</nav>
</header>
<header class="fixed-header">
<div class="fheader__container">
<img src="http://nickaburress.com/images/codepen.png" width="30px" height="auto"/>
<nav>
<a href="#section1">Section 1</a>
<a href="#section2">Section 2</a>
<a href="#section3">Section 3</a>
<a href="#section4">Section 4</a>
</nav>
</div>
</header>
<div class="container__content">
<div id="section1" class="section1">
<h1>Section 1</h1>
</div>
<div id="section2" class="section2">
<h1>Section 2</h1>
</div>
<div id="section3" class="section3">
<h1>Section 3</h1>
</div>
<div id="section4" class="section4">
<h1>Section 4</h1>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
body {
font-family: 'Open Sans', sans-serif;
font-weight: 300;
margin: 0;
padding: 0 15px 30px 15px;
box-sizing: border-box;
background: #F3F3F3;
}
body .static-header {
max-width: 900px;
overflow: hidden;
box-sizing: border-box;
margin: 20px auto;
text-align: center;
}
body .static-header img {
margin: 0 auto;
}
body .static-header nav {
padding: 20px 0 0;
max-width: 400px;
margin: 0 auto;
}
body .static-header nav a {
display: inline-block;
color: #666666;
text-decoration: none;
font-size: 14px;
cursor: pointer;
}
body .static-header nav a:not(:last-of-type) {
padding-right: 30px;
}
body .static-header nav a:hover {
color: #333333;
}
body .fixed-header {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: