I have some little css DIVs popping up at a couple of pixels right and down from the mouse, and that works all well and fine. The problem is that when they start popping up close to the edge of the browser window, they get squished. Is there any way to detect the width of the layers? I would prefer not to have to manually set the widths of all the popup thingies I have (its a map, so there's a lot.). Right now the width is set dynamically based on the width of the content, and I would like to keep it that way and just have JavaScript figure out the width of the popup so that I can move it far enough away from the edge of the screen that it doesn't look bad (not to mention the difficulty in reading these things when they get squished). Thanks for the help, I'm sure the Ars coding gods will know of some solution.
-Judicator
-Judicator