How do you get the width of an element without a defined width?

Posted by Moak on Stack Overflow See other posts from Stack Overflow or by Moak
Published on 2010-04-26T14:38:15Z Indexed on 2010/04/26 14:43 UTC
Read the original article Hit count: 110

Filed under:
|
|
|

How would you find out the width of a element that is wrapped by 20 odd other elements, but the only fixed width I know is the main wrapper's which is 800px. All child elements are generally blocks, floating or not, with different paddings and margins.
I don't really need the answer to a specific case, I'm just wondering if there are tools or tricks to quickly calculate such things.
Thanks

© Stack Overflow or respective owner

Related posts about html

Related posts about css