javascript width of element using getBoundingClientRect

5 Ways To Get The Width Of An HTML Element In JavaScript
  Raja Tamil