3min chapter

Syntax - Tasty Web Development Treats cover image

Responsive Design Techniques

Syntax - Tasty Web Development Treats

CHAPTER

Using Repeat With Auto Fit and Min Max

This is one of those things that you really want to see in action when you're using repeat with auto fit and min max. It looks like you're nesting multiple functions, right? But the way this actually works is that you if you have grid template column set and you repeat how many columns you have,. You're going to say auto fit and auto fit fits the columns into the space by expanding them to take up the available space. And likewise, there's also clamp, which is not a grid technique, but clamp is kind of like a min max where with min max, you give it a max and a min value  and it just makes sure it's within those bounds.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode