How to get the position of a hidden object
<p>So I have a megamenu that I'm working on, and I want to have it conform to the screen size. When the submenu is dropped down, I don't want it off the edge of the screen. The hiccup in my plan is that I don't know how to detect an element's position before it is actually visible to the browser. Is there a way to accomplish this?</p>
