Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Figma auto layout tutorial

        Practice the difference between hug contents, fill container and fixed dimensions. Inspect gaps, padding and long-label behavior.

        Checked 23 November 2026

        Frame sizing

        Auto layout arranges children using direction, spacing, padding and alignment. A frame can resize with its contents, while a child can fill available parent space. Treat the two axes separately. A button can hug its label horizontally and keep a fixed height.

        For a workshop card, use a vertical parent with padding. Set the text width to fill and allow its height to respond to wrapping. Then change the label to a longer sentence. A fixed text box may clip even when the first label fits.

        Resize checks

        Change the parent width and inspect each child. Fixed dimensions preserve their size. Fill uses the available space under the parent layout. Hug derives a dimension from the content. A parent and child cannot both depend on an unresolved size without a clear constraint.

        Constraints describe resizing behavior inside a frame. They do not replace the flow and spacing rules of auto layout. Check the parent and the child rather than repairing a screenshot with manual coordinates.

        Practice boundary

        Open responsive layout practice and constraint practice. The independent simulator models selected layout rules. Verify production wrapping and browser accessibility in the implemented interface. Use the property reference when reviewing a handoff.

        Sources

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.