Pin element to center

Oh thats a really good answer thanks a lot ill try and implement it then.