Learn how to create a responsive CSS grid layout

Learn how to create a responsive CSS grid layout

Kevin Powell

2 года назад

125,256 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Aaroon play
Aaroon play - 25.11.2023 00:18

No doubt about it, every time i have struggled with css, this is the place to come. thanks a lot.

Ответить
Ryan
Ryan - 18.11.2023 04:11

And this is what you called in the first sentence of the video: "So easy" ?

My thought after finish watching is: "Very reliable" 🙄

Ответить
Nova Kirsch
Nova Kirsch - 27.09.2023 00:13

Merry Christmas, Kevin

Ответить
Yoni Cohen
Yoni Cohen - 07.07.2023 19:16

Thank you! Now I know grid-template-columns: repeat(auto-fit, minmax(x,y)) and aspect ratio better.

Ответить
patunola ibukun
patunola ibukun - 08.06.2023 14:35

😮Just discovered o haven't subscribed after week of watch your tuitorials, Kelvin you're a saviour to we beginners

Ответить
Lokecrafter
Lokecrafter - 05.06.2023 01:50

Nice tutorial worked perfectly for creating a home page of apps

Ответить
shinmini
shinmini - 28.05.2023 01:08

Thanks for make this awesome video🔥🔥

Ответить
leon vita
leon vita - 26.03.2023 21:47

you good and i like your videos but you talk too much out of subject which is very annoying.

Ответить
Helena Han
Helena Han - 21.03.2023 16:11

I am doing my homework and was stuck with the grid layout for the whole day, and then, I found your video! definitely saved me! thank you so much for this fantastic video.

Ответить
Jeffrey Hendrik Frans
Jeffrey Hendrik Frans - 12.02.2023 08:29

Thanks for the grid lesson Kevin. Help me so much 🙏🏼

Ответить
Michal Nowak
Michal Nowak - 28.01.2023 22:45

thx

Ответить
Devon Chia
Devon Chia - 15.01.2023 10:26

i like ur shirt 🤣

Ответить
Jeremy Horne
Jeremy Horne - 12.01.2023 20:01

I'm a bit late with this but thanks Kevin I've just finished a big real world project for a client and this video nailed it for me!

Ответить
Riya Tiwari
Riya Tiwari - 28.12.2022 23:27

Thank you so much Sir for this tutorial, it saved my life.❤❤❤❤❤

Ответить
Harshil Maheriya
Harshil Maheriya - 22.12.2022 16:33

Hands down for this legend 🙏🏻💯🙌

Ответить
keannu
keannu - 07.12.2022 01:07

Very helpful guide! Thank you

Ответить
UniQueLyEviL
UniQueLyEviL - 04.12.2022 13:55

That shirt's hilarious

Ответить
Bokistotel
Bokistotel - 19.11.2022 22:41

Does repeat(auto-fit,minmax(15rem, 1fr)); removes necessity for @media (min-width:...) ?

Ответить
Pedro Rodriguez
Pedro Rodriguez - 19.10.2022 19:02

I'm a big fan of your tutorials and I like the way you handle css, but I get a little frustrated about semantic.
For instance, when you create a card, shouldn't you be using figure, img and figcaption ?
I think it'd be more efficient as far as accessibility is concerned, am I wrong ?

Ответить
Kribo
Kribo - 06.10.2022 14:25

Grid area's is my thing now

Ответить
blue.sky1992
blue.sky1992 - 28.09.2022 13:51

hello kevin im a beginner in this field when i saw the predefined ccs rules im really confused because there are alot of things i dont know and didnt use

Ответить
z a k
z a k - 30.08.2022 10:46

why would you put container in rem values?

Ответить
eko
eko - 13.08.2022 20:40

Another great one

Ответить
Michael Birkeland
Michael Birkeland - 03.08.2022 00:03

This is soooooo AWESOME 🤩🤩🤩🤩🤩

Ответить
vasyaqwe
vasyaqwe - 17.07.2022 11:07

I've watched so many of your videos now and with each new video I watch I keep thinking of how much I learn from you. Kevin, you're amazing. Please keep doing what you're doing.

Ответить
L D
L D - 21.06.2022 19:45

Thank you!

Ответить
Davidson Fong
Davidson Fong - 19.06.2022 13:56

Kevin, I cannot thank you enough for all this wonderful knowledge that you’ve shared. You have helped me become such a better programmer. Thank you!!!

Ответить
nomadshiba
nomadshiba - 02.04.2022 10:39

i don't think you need aspect ratio here
you can just use height: calc(100% - 1em) or something like that

Ответить
ngoc anh NGUYEN
ngoc anh NGUYEN - 13.03.2022 18:49

Cant describe what you have openned my eyes, Kevin!!! Thank you so so so much!!!

Ответить
wilmar muñoz
wilmar muñoz - 15.02.2022 16:16

Thnks a lot for this, ur the best!

Ответить
Naraya Dewe
Naraya Dewe - 13.02.2022 16:51

Amazing Teacher!!!

Ответить
Raj Chudasama
Raj Chudasama - 09.02.2022 01:20

Grid isn't supported in ie10 and 11 though? How can we cater for these browsers?

Ответить
δlieř
δlieř - 08.02.2022 05:22

man, nowadays is so easy to develop good looking website.. back then when im actively working as web dev, i still remember that designer need to use `table` to create some sort of layout.. then come along `float` that make everything much easier.. `grid` is even easier to use..

Ответить
Mel Bazany
Mel Bazany - 02.02.2022 21:14

You're truly the best. Bingeing your channel for the past few months. Sincerely, thank you!!!

Ответить
Bekir Shala
Bekir Shala - 01.02.2022 01:26

Just great vid :) Very useful and clear

Ответить
Radomir Mijovic
Radomir Mijovic - 20.01.2022 23:30

What keyboard are you using? Thanks for teaching us CSS!

Ответить
Andreas S.
Andreas S. - 13.01.2022 04:54

Mind: Blown 🤯

Ответить
Petar Kolev
Petar Kolev - 11.01.2022 09:26

Kevin, thank you for the wonderful tutorial ❤️ You make me dominate my colleagues when it comes to CSS :D

Ответить
CJThunder
CJThunder - 10.01.2022 23:38

Why can't you make tutorials without showing your face? Not everyone wants your face in their face.

Ответить
Broadshare
Broadshare - 10.01.2022 15:24

Thank you Kevin, your channel is a web tool. Always learning new things from you

Ответить
Phil Kewley
Phil Kewley - 06.01.2022 23:04

this is the layout that I've wanted for my clothing store - because it's got a comic book style and that's the sort of timid approach to anarchy that I am comfortable doing. And it looks so good! But then I also managed to break something, I was putting it all together on a 2560 x 1289 monitor and I started fiddling with the grid size & aspect ratio until it stopped looking bloated, then I uploaded to check it on my ancient oneplus (6 I think) phone, looks great. smaller iPhone 12 looks even better! - but then It gets messed up on the iPad AIR at 820 width because it pulls the card content div 100% on top of the image. I am super scared of fiddling with it any more because on an iPad Pro it looks perfect at both 1024 & 1366. How far do you go for perfection? I wish I was more confident and could hold knowledge the way you do, you make it look so easy!

Ответить
TrueInSite
TrueInSite - 06.01.2022 22:35

Awesome!!! You ROCK!! :)

Ответить
Emmy Leke
Emmy Leke - 06.01.2022 21:23

Beautiful

Ответить
Bob Marteal
Bob Marteal - 05.01.2022 21:24

The full outline of how to really use aspect-ratio makes me really happy.

Ответить
Dave Steinberg
Dave Steinberg - 05.01.2022 00:58

Great demo. Thanks for creating it!

One thing I noticed is that you're using an h2 but no h1, which is a bad thing for accessibility, since it breaks the semantic hierarchy of headings.

If there's only one level of heading on your page, it should always be h1, and you can style that to be whatever size you want.

If you're assuming that there would be an h1 above the grid on a "real page", then it would be helpful to say so explicitly, so that your viewers don't accidentally pick up practices that harm accessibility.

Ответить
Jayden Moon
Jayden Moon - 04.01.2022 00:52

Kevin - dude, you are simply an amazing teacher - thank you so much for all your hard work - cannot wait to see what this year brings

Ответить
AWM
AWM - 03.01.2022 19:43

Grazie.

Ответить
Hossam Salem
Hossam Salem - 03.01.2022 11:36

Great lesson, never used it like this before, really thank you Kevin.
I have one question. What if I have two grids on top of each other, and each one has its own cards within it, how to make the same width for all the cards in the two sets?

Ответить