Getting Width & Height of an Element in JavaScript
![](https://www.javascripttutorial.net/wp-content/uploads/2020/02/JavaScript-clientWidth-and-clientHeight-png.png)
In this tutorial, you will learn how to get the current computed dimension of an element, including width and height, in JavaScript.
Element size and scrolling
![](https://api.jquery.com/resources/0042_04_03.png)
outerHeight() jQuery API Documentation
![](https://www.w3docs.com/uploads/media/snippet_gallery/0001/05/285511085463514da85ac4640a18579e6bd063d6.png)
How to Retrieve an HTML Element's Actual Width and Height
![](https://miro.medium.com/v2/resize:fit:1400/1*pRbkNUIDgsIimjhRP5Jn4w.png)
Why is height not working?. Parent does not stretch to child's
![](https://i0.wp.com/css-tricks.com/wp-content/uploads/2018/07/viewport-units-mobile-crop-featured.jpg?fit=1200%2C600&ssl=1)
The trick to viewport units on mobile
![](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight/firefoxinnervsouterheight2.png)
Window: innerHeight property - Web APIs
![](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/Determining_the_dimensions_of_elements/dimensions-offset.png)
Determining the dimensions of elements - Web APIs
![](https://user.oc-static.com/upload/2018/05/17/152659103123_p1c5-3.png)
Control an element's width and height - Create Web Page Layouts
![](https://www.javascripttutorial.net/wp-content/uploads/2020/02/JavaScript-clientWidth-and-clientHeight-png.png)
Getting Width & Height of an Element in JavaScript
GitHub - learnshareit22/Set-Width-and-Height-of-Element-using
![](https://i.stack.imgur.com/h2l5A.jpg)
math - How can I measure the width and height of a rotated element
![](https://www.freecodecamp.org/news/content/images/2021/02/empty_body.png)
HTML vs Body: How to Set Width and Height for Full Page Size
![](https://www.bu.edu/tech/files/2013/07/tw-howto-find-size-chrome-step-1.png)
Find the dimensions of a web page element : TechWeb : Boston
![](https://i0.wp.com/css-tricks.com/wp-content/uploads/2021/02/steps.png?fit=875%2C656&ssl=1)
Exploring the Complexities of Width and Height in CSS
![](https://justcodingthings.com/img/get_width_height_js_example.png)
Get the Width and Height of an Element using Javascript