i want to to get the height/width of an image inside a hidden div-containter, but .height() and .width() both returns 0 (like expected).
.height()
.width()
Make the div temporarily visible in order to compute the height or hide the div off screen instead of using display: None. I have used the first approach, and found it to be fast enough that you will never see the element.