Force div element to stay in same place, when page is scrolled
Use position: fixed
instead of position: absolute
.
See here.
Change position:absolute
to position:fixed;
.
Example can be found in this jsFiddle.
Use position: fixed
instead of position: absolute
.
See here.
Change position:absolute
to position:fixed;
.
Example can be found in this jsFiddle.