Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<style>
body {
height: 4000px;
margin: 0;
overflow: hidden;
}
#sticky {
position: sticky;
top: 0;
height: 60px;
background-color: blue;
}
</style>
<body>
<div id="sticky"></div>
</body></html>