Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<style type="text/css" media="all">
body {
margin-top: 0;
overflow: hidden;
}
.container {
width: 500px;
background: #fcc;
height: 2000px;
}
.header {
position: sticky;
top: 0px;
background: #cfc;
height: 50px;
}
</style>
</head>
<body>
<div class='container'>
<div class='header'></div>
</div>
</body>
</html>