HTML
<div id="wrapper">
<div class="header">
<div class="header-wrapper">
<img src="logo.jpg" class="logo"/>
<a href="#" onClick="scrollContent('about')" class="about">About</a>
<a href="#" onClick="scrollContent('contact')" class="contact">Contact</a>
</div>
</div>
<div class="part1">
<div class="part1-wrapper">
<!-- some content -->
</div>
</div>
<div class="part2 about" id="about">
<div class="part2-wrapper">
<!-- About us -->
</div>
</div>
<div class="part3 contactus" id="contact">
<div class="part3-wrapper">
<!-- Contact us -->
</div>
</div>
</div>
CSS
#wrapper {
padding-top: 35px;
}
.header {
background: #666;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 35px;
z-index: 9999;
}
.header a {
float: left;
margin: 8px 18px 0 0;
font-family: Verdana;
font-size: 14px;
text-decoration: none;
letter-spacing: 1px;
color: #fff;
transition: color 0.2s ease-in;
}
.header a:hover {
color: #ddd;
}
.logo {
float: left;
margin-right: 30px;
}
.part1,
.part2,
.part3 {
position: relative;
width: 100%;
}
.part1 {
background: #aaa;
}
.part2 {
background: #ccc;
}
.part3 {
background: #eee;
}
.part1-wrapper,
.part2-wrapper,
.part3-wrapper {
width: 960px;
margin: 0 auto;
padding: 10px;
}
jQuery
function scrollContent(id) {
$( 'html, body' ).stop().animate({ scrollTop: $( '#' + id ).offset().top }, 1200 );
}
$(function () {
var parts = $('.part1, .part2, .part3');
parts
.css({
height: $(window).innerHeight(),
width: $(window).innerWidth()
});
});
jsFiddle - http://jsfiddle.net/mdesdev/VJxeH/