+ 1
What is dynamic positioning in javascript?
3 odpowiedzi
+ 1
Yeah, thnaks.
But if we explained it theoritically how can we stated..?
+ 1
Try it on Code Playground, you would understand how it works, since all commands codes are literally straight forward understandable.
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>