CSS Positioning Fixed position


Example

Defining position as fixed we can remove an element from the document flow and set its position relatively to the browser window. One obvious use is when we want something to be visible when we scroll to the bottom of a long page.

#stickyDiv {
    position:fixed;
    top:10px;
    left:10px;
}