Element.getDimensions

Official docs: Element.getDimensions

Although Prototype's getDimensions works great on elements that are, themselves, hidden, it doesn't work on elements inside hidden containers. Check out this tip for a version that handles both situations.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License