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

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -