Get the offset of a hidden element
If your element has had .hide() called on it, or if it’s got display:none in css, the browser doesn’t bother rendering it at all. In this case, the answer is not directly. In recent jQueries, you can’t even get its width or height. On the other hand, if you .show() an element, then .hide() it … Read more