Answers for "current height minus px"

1

current height minus px

let divHeight = document.getElementById('divID').offsetHeight;
      divHeight -= 264;
      document.getElementById('divID').style.height = `${divHeight}px`;
Posted by: Guest on March-03-2022

Code answers related to "current height minus px"

Code answers related to "Javascript"

Browse Popular Code Answers by Language