get the x,y coordinates of an element's center.