html - How to lock JavaScript element on page? -


i made new element in javascript , appendchilded parentnode of html element, seems great, see , can put data in it, when i'm trying change size of browser, or scroll element "following me".

how can "lock" it, won't move place put in?

thank answering. made it! :) used method wrote @abhishek verma.

you can create element , apply following css class.

.staticelement {  position: static;  top: 0:  left: 250; } 

you can change position of div changing value of top left element in css.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -