Answers for "how to move html element to the right"

CSS
2

move element to the left css

.element {
  position: relative;
  left: -5px;
}
Posted by: Guest on September-07-2021
0

how to move a div to the right using a funvtion

window.addEventListener('click', function(e){
  if (document.getElementById("ClickBox").contains(e.target)) {
    var boxxy = document.getElementById("ClickBox");
    boxxy.style.left = (boxxy.offsetLeft + 50) + 'px';
  }
});
Posted by: Guest on December-25-2020

Code answers related to "how to move html element to the right"

Browse Popular Code Answers by Language