title: How to set html element position in percentages in javascript or jquery
body: <p>i am trying to set the position of a div to right 100% of the body. How-ever it needs to be done in JavaScript(or jQuery).</p>
  
  <p>This is how i imagined the code would look...</p>
  
  <pre><code>const div = document.getElementById("div");
  div.style.right = 100 + "%";
  </code></pre>
  
  <p>Any information or documentation for me to research would be greatly appreciated thank you. For clarification i want to move a div to the right side of the body, but i want to do it in percentages in javaScript.</p>