DEV Community

Discussion on: Checking the Dimensions of an HTML Element in Vanilla JavaScript

Collapse
 
trusktr profile image
Joe Pea

Yet another way is with getComputedStyle(element).height/width.