Formatted the position of elements and also rounded off the distance