+ 1

What is dynamic positioning in javascript?

5th Dec 2017, 11:28 AM
Bits!
3 odpowiedzi
+ 1
Yeah, thnaks. But if we explained it theoritically how can we stated..?
6th Dec 2017, 11:44 AM
Bits!
+ 1
Try it on Code Playground, you would understand how it works, since all commands codes are literally straight forward understandable.
6th Dec 2017, 11:47 AM
Calviղ
Calviղ - avatar
0
Try this: <div class="box"></div> <script> var box = document.querySelector(".box"); box.style.position = "fixed"; box.style.width = "50px"; box.style.height = "50px"; box.style.backgroundColor = "red"; box.style.top = "0px"; box.style.left = "0px"; </script>
5th Dec 2017, 12:17 PM
Calviղ
Calviղ - avatar