Created
September 10, 2019 19:23
-
-
Save charisTheo/9a4741b7a69f6f773a0d14aa9b06eddb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vanilla JavaScript | |
void element.offsetWidth; | |
// or similarly | |
void element.offsetHeight; | |
// jQuery | |
$("#element").width(); | |
// or similarly | |
$("#element").height(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment