CSS GRID: Using minmax() for Responsive Grids — 13 of 25

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Think of auto-fill trying to get closer to the min value and auto-fit tries to get closer to the max value.

robgillanofficial
Автор

It's several months since I took this course, but it has become my main source of truth related to CSS grid and the content and structure of the course, is excellent.

sveinsoermo
Автор

Also something important to add for minmax,

You can't use an fr unit for the minimum value when using minmax. It just doesn't work. Ad you see though it is a valid unit for the max value. ❤

clevermissfox
Автор

Hi one question: when I use "repeat(auto-fill, 100px) : altough the width stays at 100px, the cells are still expanding in height by default to fit it's content. Why isn't this happening at youre side?

kevinegal
Автор

The first example seems like it would be good for responsive navigation

Bayo
Автор

Thanks for the video. What's the extension that you use to show the overlay grid?

jcleefw
Автор

Hi. I dunno why
grid-template-columns: fit-content(500px) 100px 100px 100px;
dosent work for me.
Instead,
grid-template-columns: minmax(auto, 500px) 100px 100px 100px;
is worked just fine.
Does anyone have any idea?

espressoly
Автор

Hey! I tried to put min-content as the first value in the minmax, so i dont have to care about how wide should my grid items be to contain all of my content properly, but it sadly didnt work, each of my items occupied the entire width of their own column. Any idea why that happens? Isn't min-content supposed to mean that the columns width should be the minimum that can contain the content without any overflow?

leventemathe
Автор

Wes, you owe me a dollar!
Edit: thanks for the free content!

UserProxy
Автор

Video: Yeah well explained I like it.
Music at the end: OK, subscribed

kunamate
Автор

why the inspect is do much different?? which extension are you using?? does any one
knows?? please share with me . Thank You

muzammilnaeem
Автор

I tried 'gtc + tab' in Codepen, Chrome, and Firefox Developer Edition and nada. What editor browser are you using?

CraigCurtisO
Автор

What's the name of this editor program?

ahmedmahfadi