Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created September 10, 2013 15:38
Show Gist options
  • Save thekarel/6511245 to your computer and use it in GitHub Desktop.
Save thekarel/6511245 to your computer and use it in GitHub Desktop.
var rect = element.getBoundingClientRect();
console.log(rect.top, rect.right, rect.bottom, rect.left);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment