Layout & Design
Joseph
·
7:37
·
65K views
·
About this lesson
Stacks not only allow us to create rows or columns of perfectly aligned and distributed elements — they also unlock two of the most powerful sizing modes in Framer… “Fill” and “Fit Content”.
Since relative positioned layers are aware of their siblings and push against one another, we can use “Fill” sizing to determine how they scale to occupy the available space — ensuring our designs are fluid and responsive across different screen sizes and devices.
On the flip side, Stacks can also be set to “Fit content” to automatically snug themselves around their child elements.
In this lesson, we’re going to dig deep into how these two sizing modes work — along with how and when to use them.
https://www.youtube.com/watch?v=5DYSoL26oeM&t=0s Intro
https://www.youtube.com/watch?v=5DYSoL26oeM&t=5s Fill and fit content sizing modes
https://www.youtube.com/watch?v=5DYSoL26oeM&t=15s How fill sizing works in stacks
https://www.youtube.com/watch?v=5DYSoL26oeM&t=22s Using fractional units (FR)
https://www.youtube.com/watch?v=5DYSoL26oeM&t=41s FR math examples
https://www.youtube.com/watch?v=5DYSoL26oeM&t=61s Mixing fill and fixed sizes
https://www.youtube.com/watch?v=5DYSoL26oeM&t=68s Benefits of fill sizing for fluid layouts
https://www.youtube.com/watch?v=5DYSoL26oeM&t=71s Introduction to fit content
https://www.youtube.com/watch?v=5DYSoL26oeM&t=86s How fit content works
https://www.youtube.com/watch?v=5DYSoL26oeM&t=112s Fit content with padding
https://www.youtube.com/watch?v=5DYSoL26oeM&t=133s Fit content shortcuts and defaults
https://www.youtube.com/watch?v=5DYSoL26oeM&t=154s Avoiding conflicts between fill and fit
https://www.youtube.com/watch?v=5DYSoL26oeM&t=175s Wrap up
🌞 Start for free: https://framer.link/yt
📚 Learn more at: https://framer.link/yt-academy
💎 Join the Community: https://framer.link/yt-community
🎉 Follow on X: https://framer.link/yt-x