Determine the direction into div