How do I find the top of a tilted DIV?
There is a rectangular DIV with a specific width and height (e.g. 70px by 100px).
And it's styled
transform: rotate (15deg)
getBoundingClientRect ()Chase Melendez
Answer hereDeclan Spears
Geometry + js. ;)Anonymous
var style = window.getComputedStyle (element [, pseudoElt]);Eloise Meyer
To place the code, please use CodePen or similar tool. Thanks you!