html - How to lock JavaScript element on page? -
i made new element in javascript , appendchild
ed 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
Post a Comment