I have looking for an example to create a header which will stay static while page is scrolled down. Exactly like this example.
I looked at this one, this one and some more but didn’t find properly working example.
Thanks in advance
<!DOCTYPE html>
<html>
<head>
<style>
#header { height: 100px; background:#EEEEEE; }
#footer { height: 100px; background:#EEEEEE; }
#content { height: 1000px; background:#CCCCCC; }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
</head>
<body>
<div id="container">
<div id="header">Header</div>
<div id="content">Content</div>
<div id="footer">Footer</div>
</div>
</body>
</html>
CSS
position:fixedis what you are looking for: