css keep div on top of screen code example
Example 1: make the first item at the very top of the screen
.fixedElement {
position:fixed;
top:0;
width:100%;
z-index:100;
}
Example 2: how to make a div element further from the top
.element {
position: relative;
top: 20px;
}