How can I make UI elements maintain their ratio on different screen resolutions and sizes?

Hey. So, I’m currently messing with a project for mobiles and am developing it in 16:9. When designing my UI, I put the anchors on the corners of each element so that they scale in size relative to the size of the screen.
But, the way that I’m doing makes it a really big pain if I want to move the elements (I have to figure out where I want to move it then calculate where the anchors must go) and also if the resolution ratio changes then the elements don’t maintain their own ratios (ex: square elements will get stretched and will no longer be squared).

So, my question is, is there a better way to design UI so that they scale correctly is size and ratios with differences in screen sizes/resolutions? Thanks!

By using Scaler. Sometimes it’s good to read docs.

http://docs.unity3d.com/Manual/script-CanvasScaler.html

Well that’s bloody brilliant.