Fixed position
suggest changeposition: fixed removes an element from normal flow and positions it relative to the viewport. A transformed, filtered, or will-change ancestor, among other properties, can become the containing block instead, so the element is then fixed to that ancestor rather than the viewport. One obvious use is keeping something visible while a long page scrolls.
#stickyDiv {
position:fixed;
top:10px;
left:10px;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents