If I have a div that is rotated 45 degrees, and its attributes are: left: 0, top: 0, width: 100px, height: 100px. Is it possible to get the actual x, y position of the upper left corner of the divs?
When the div is rotated, the upper left corner is approximately -10px, -10px (guess). But I'm trying to calculate the actual top left x, y corners for a web application.
Maybe you know a mathematical formula that can determine the upper left corners of x, y position? Or maybe the javascript attribute will give me this? For example, div.style.actualLeft ;?
source
share