# Control element position with constraints Keep elements exactly where you want them, like a badge in the corner of an image or a logo in the center of a banner, on desktop, tablet, and mobile. ## When to use Best fits for: * Keeping an element anchored to a specific edge or corner as the screen resizes * Positioning elements freely inside a Frame, without them shifting unpredictably on a different device * Centering an element so it never drifts horizontally or vertically ### Constraints vs. Stack vs. Absolute position ## Common setup 1. Select the element. 2. In the Inspector, go to **Design** > **Constraints**. 3. Drag the element in the canvas directly, or choose a horizontal and a vertical anchor, then enter the distance from that edge.