create parseTop utility function to 1) sort out whether the css top value returned is in pixel or percent and 2) to convert to pixel where appropriate.