DOM Element Width before Appended to DOM

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-05-27T13:18:14Z Indexed on 2010/05/27 13:21 UTC
Read the original article Hit count: 591

Filed under:
|
|
|

I'm sure the answer is no, but is it possible to determine the width of an element before it is appended to the DOM?

Once it's appended, I know I can use offsetWidth and offsetHeight.

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery