Element 'positioning algorithm'