The EASIEST way to get started with CSS GRID

The EASIEST way to get started with CSS GRID

Kevin Powell

54 года назад

207,765 Просмотров

I always saw grid as a very powerful, but slightly complicated tool, for creating layouts. I love it SOOO much, but there is just so much to it... but is there a way to simplify it down and get started with it without having to get deep into the weeds?

Well, I think so with the use of `grid-auto-flow`!

I didn't mention it in the video, but if you take this approach, the columns might be slightly different in width. You can add `grid-auto-columns: 1fr;` and take care of that 😊


🔗 Links
✅ Codepen: https://codepen.io/kevinpowell/pen/RwpKgNb
✅ Dive deeper into grid: https://youtube.com/playlist?list=PL4-IK0AVhVjM41-Ezm5tmESVchNEi7aZU


⌚ Timestamps
00:00 - Introduction
01:43 - Making columns with grid
03:12 - The problems with this method
04:00 - Using grid-auto-flow

#css

--

Come hang out with other dev's in my Discord Community
💬 https://discord.gg/nTYCvrK

Keep up to date with everything I'm up to
https://www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
📺 https://www.twitch.tv/kevinpowellcss

---

Help support my channel
👨‍🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome
💖 Support me on Patreon: https://www.patreon.com/kevinpowell

---

My editor: VS Code - https://code.visualstudio.com/

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Тэги:

#Kevin_Powell #css #front-end #frontend #html #tutorial #css_grid_tutorial #css_grid #css_grid_layout #css_grid_layout_tutorial #how_to_use_css_grid #learn_css_grid #responsive_web_design #css_grid_vs_flexbox #grid_css #grid_layout_css #css_tutorial #responsive_css_grid #grid_in_css #responsive_css_grid_layout #grid_css_tutorial
Ссылки и html тэги не поддерживаются


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