Learn CSS Grid in 20 Minutes
Vložit
- čas přidán 8. 06. 2024
- 🚨 IMPORTANT:
Learn CSS Today Course: courses.webdevsimplified.com/...
In this video we will cover everything you need to know about CSS grid in only 20 minutes. We will cover what grid is, how grid differs from flexbox, how grid works, and the different properties you can use to layout and style your grid containers and items. CSS grid is one of the most powerful layout tools ever added to CSS. It allows you to create dynamic, responsive, and complex layouts with very little code. We will be covering all of the terminology, by going through live examples of all the different grid properties.
If there is anything you feel I missed in discussing grid, or anything about grid that confused you, please let me know in the comments below.
Learn Flexbox in 15 Minutes:
• Learn Flexbox in 15 Mi...
CodePen for this Video:
codepen.io/WebDevSimplified/p...
Twitter:
/ devsimplified
GitHub:
github.com/WebDevSimplified
CodePen:
codepen.io/WebDevSimplified
#CSSGrid #WebDevelopment #Programming
If you haven't already, make sure to checkout my Flexbox tutorial. It will make following along with this video much easier.
czcams.com/video/fYq5PXgSsbE/video.html
Your tutorials are so helpful, thank you for simplifying the web no pun intended.
where are you writing the code? also how do you put this website on the web?
@@dianale5218 He's writing the code inside software called VSCode and using an extension called Live Server or running a http server with python.
Excellent advice at 17:47 :"Flexbox and grid were designed so they would work amazingly together, and using flexbox items inside of your grid containers is one of the best ways to lay out a site." Thanks for your examples and your expert advice. Great work Kyle.
Are you sure it's good to place flexbox inside of grid? Why not flexbox in flexbox?
@@worldclasscode1847 Cuz it takes up a lot more containers, css selectors and also a lote more repeated properties, IMO.
@@dokedoke0426 yeah, it's pretty obvious. If you have four columns and four rows, that's one grid vs. four flexbox containers, etc.
@@zombiefacesupreme its 5 the i guess you have to put the other 4 flex box in a single flex box as well for easier layout
if you are here, I beg you! can you explain me how as soon as he adds a new div, there's already color and text inside that div but he hasn't written any text in the main html file, how is this happening? and why is he using two css files? I understand the styles.css but what's the other background_styles.css doing? I don't understand, please explain!
The 77 dislikes are from those professors who caused us to come here.
XD
Where are you from?
😂😂😂
😆😆😆
🤣🤣💯💯
For those wanting to know how the DIVs are auto-numbered, it's these styles which are in the background_styles.css file (which isn't shown in the video but is available in the CodePen example)
.grid-item::before {
content: 'Grid Item';
position: absolute;
font-size: 18px;
font-weight: bold;
top: 10px;
left: 15px;
}
.grid-item::after {
position: absolute;
font-size: 18px;
top: 10px;
right: 15px;
font-weight: bold;
}
.grid-item-1::after {
content: '1';
}
.grid-item-2::after {
content: '2';
}
Etc.
Thanks, was wondering the same.
this reply should be pinned
I always look for Kyle when I want to learn about coding
me too
@@briandacallos4234 let me know if you find him ;) lol
@@paulbrown6792 Just search "Web Dev Simplified" and you're good to go :) Sarcasm attack ? Good luck old man
@@briandacallos4234 let the man have some fun , jackass
@@paulbrown6792 hah, good one :)
The amount of extremely useful information you always manage to squeeze into such a small amount of time is amazing! Thank you!
It's lean and healthy webdev "food" - no fillers, no crap. CZcams needs a tip me $5 button!
if you are here, I beg you! can you explain me how as soon as he adds a new div, there's already color and text inside that div but he hasn't written any text in the main html file, how is this happening? and why is he using two css files? I understand the styles.css but what's the other background_styles.css doing? I don't understand, please explain!
@@Tenchi707I assume the background color and the numbers are coming from the background_styles.css
Hey Kyle, so glad I found your channel. The explanation of grid is amazing! Clear, concise and fast. Love your work. Big thanks!
if you are here, I beg you! can you explain me how as soon as he adds a new div, there's already color and text inside that div but he hasn't written any text in the main html file, how is this happening? and why is he using two css files? I understand the styles.css but what's the other background_styles.css doing? I don't understand, please explain!
@@Tenchi707 In the other file he has put the background color .New divs get the color by heritage , as some properties get passed down .
what truly sets your tutorial apart from other coding tutorial is the pace. Yours is not too fast, or too slow, just the right amount of pace to attracts learners' attention, but not to much so that you won't scare learners away. Nice tutorial, brother!!!
Beginners will be in confusion at 2:45 with you glossing over how the starting boxes were styled. I watched this video when I was starting out and I didn't know you'd created a separate css sheet for the visual styling. I thought I could follow along as-is and could never work out why I didn't have any blue boxes. In my naivete I thought that's what grid was supposed to do and was worried that mine wasn't! Now I come back with some knowledge I see that this ISN'T a beginner video. Great instruction otherwise. We need plenty more post-beginner/intermediate stuff.
This confused me too, but I saw that he had linked the background.css stylesheet to the document after reading your comment. Thought I'd leave a reply so people will know what's up if they get stuck
I thought the exact same thing. I saw a linked 'style.css' file but no parameters were included so still confused as where that styling came from.
Let's see your videos then DORK.
Hi, may I know what is the css content in background.css that generate the box with the numbers generated accordingly when new divs were made?
@@caroltheman98 where is this particulat stylesheet?
I have watched both flexbox and grid from your channel. Easy to understand, very clear and not at all verbose. Thank you bro for making me love with css.
One of the best coding tutorials out there. Amazing job, my friend.
This was by far the best explanation on using css grids I have spent 5 hours+ looking for a video like this. Keep up the great work this is amazing!
same here. so many examples that did not work, or overcomplicated it by showing "how to do grids by writing a raytracing animation at the same time" instead of just showin the basics. This tutorial was the best and most informative.
Putting in grid-gap before explaining how the column-end count works was a brilliant move because it really helped illustrate how that was included in the count. What a great video!
My professor explained this so bad in two hours and I didn't had a clue what he was talking about.. after 20min watching you, it feels natural and easy! Thanks!
THANK YOU!!! 😭
Ive been struggling for weeks to make a site work hat has both columns and rows and have watched countless flexbox videos trying to make that alone work.
You dont know what you dont know until you know🤷♀
This video has just unlocked a higher level for me.
Truly appreciate your content.
Keep up the good work.
👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽
this guy made this video and was able to explain the topics better than most youtubers.... thanks bud
I looked at MANY videos on Udemy and on CZcams to learn about css grids. This one was the best one I've found. Explains the concepts in a way that are so easy to follow and understand. Thank you!!
And that's exactly what we want! 😊
Awesome and simplified as always.
Great job, Kyle!
Thank you! I am really glad you enjoyed the video.
if you are here, I beg you! can you explain me how as soon as he adds a new div, there's already color and text inside that div but he hasn't written any text in the main html file, how is this happening? and why is he using two css files? I understand the styles.css but what's the other background_styles.css doing? I don't understand, please explain!
@@Tenchi707 Hei man, i just started to learn html/css like a month ago but I think I can help with this one, basically, as you mentioned, he is using 2 css files. one is the one we see in the video to explain the grid , and the second one that is not showing, includes the css code to style the divs ( color background etc ). I'm guessing the reason for doing this is simply that the css file used for the tutorial is fresh without any clutter from the color / background colors attributes.
This is just beautiful. In just 10 minutes, I was able to learn enough for my immediate purposes. Thanks.
You have no idea how much this video helped. I was trying to line up 5 tiles of images with links on my website for a class project. I couldn't get them to work then I found your video! By the end I had them laid out EXACTLY how I wanted. I wish I would've found this hours again. Thank you so much!
Incredibly simple explanations with nice examples! Great tutorial!
Great summary, easy to grasp and short enough to fit in my schedule. Thanks!
dude, best description of how to use it i've seen so far. will be checking out your other vids to brush up on my front end chops.
You've got a great talent bro, not just your codding skills and knowledge but also your easy-to-understand way of teaching. I've watched a couple of your videos and I found them really helpful. Thank you😍 so much for sharing your talent with us at no cost.
This is PRECISELY what I was looking for, thanks a lot.
Fast and precise with visual examples. The exact way a video on css styling can excel. Thanks!
The best explaination of css grid on YT, came here after getting confused by other vids. Thanks for another quality vid 🙏🏼🤙🏼
Great content. Concise and comprehensive. Thank you!
Great tutorial. Very concise and informative, made great help for me. Thank you, Web Dev Simplified!
Absolutely fantastic!! Using Grid with Flexbox is just amazing!
This tutorial is amazing!! clear!! Thanks!!
That was the best explanation on this that I've seen and I understand it much better now! Thank you!
This man is truly genius. He explains with his simplified terms. Good job!
One of the best tutorials on the CSS Grids
Amazing explanation! Hats off to you Kyle, you have made my life easier. 😊
Thanks A lot Kyle. I was always stuck at grid-template-area, but this video helped me to learn it too. You really simplified everything. Good job!
really awesome and in depth, better then other tutorials in CZcams
Thanks for the helpful content. Clear and concise!
This channel is simply amazing!
Yout video are awesome, Love it so much. At first I am confuse between flexbox and css grid, but after watching your video, everything is cleared!
Thanks alot you made grid so much clear...
Thanks for your concise and comprehensive tutorials.
Very good video! Thank you for talking about justify-content / align-content and justify-items / align-items. Made things very clear in my mind!
thank you very much for such demenstrative break down it's amazing what you can explain in 20 mins.
This is the most short but brief explanation, thank you kyle
This gentleman is really good and makes complex topics so easy. I wanna be as good as you someday. I know it will take a lot of practice, practice, and practice but am ready for it this time around and I won't stop until I become an expert web developer. Thank you for inspiring people like me who have almost given up. Thanks, once again!.
Thank you so much for this one, best explanation of css grid I've heard!
really easy to follow -- good flow order of concepts!! thumbs up man!!
Great video, thanks for explaining the difference between flexbox and CSS grid. It's really helpful.
Good tutorial, really helped me watching you do the examples in real time than just reading it!
Your videos are great. Very easy to understand and follow.
Kyle, you continue to be the man. Keep up the great work. Thanks for the knowledge, God bless you.
You are amazing man! best Ive seen. Thanks so much!
Oh thank you so much, this helps a lot... your videos becomes my reviewer and yes definitely "simplified"...
You guys are awesome!
Thanks! great tutorial, direct to the point.
Kyle, you explain things well. Thanks!
I love you man. Your ability to teach is incredible.
I've been struggling to understand css grid recently but this video really helped simplify it. Thank you for your help!
Great Explanation! Thanks
I was all confused about grid-column till i saw this video. Great stuff!
One of the best channels out there
Thank you for this video
I love the pace of this dude
not boring and very impactful. my fave webdev youtuber🥰
easy to understand, thx very much for making the video
so straightforward and approachable
Impeccable teaching! Thanks for sharing your gift :)
Very helpful, loving these tutorials!
Thanks!
Thank you so much , I have banged my head for a few days not undrstanding grid.
This video is really good.
Maaaaan this was right on point! Appreciate it !
you save me so much time!! good stuff !!
Super useful tutorial. I subscribed immediately. The lectures are simply explained and easy to listen and understand. Happy to find this channel. :)
Admire you.Good guy ever.Thankful for every videos I had ever watched!
Very helpful. Thank you!
you helped me a lot, thanks mate.
this guy is the true OG! Thanks alot for this content bro
i swear it is the best grid explanation video for me
Thank you bro for your time. I really pleased
Really helpful man. Thank you!
Just super Css Grid tutorial man!
straight and to the point
Thank so much : So clear!!!
Just went out of my flexbox cave. Wow, what a discovery, I'll definitely use them
thank you for this. solved my frontendmentor assignment.
thank you so much for this video, you and Dev Ed are the best
You're welcome! I'm glad you enjoyed it.
Wow this really made sense and helped. Can’t wait to apply!
great video as always, good summary
Awesome grid-area and grid-template-area. thanks for the lovely video
u have a fucking gift for teaching please never stop...cause i never wanna stop learning
Love your content man Thank you very much
Excellent explanation, thanks.
Very useful, big thank!
best video i ve seen about grid, thank you so much
this helps me a lot, thank you
Thank you so much. Great teacher!
great content, very informative thank you, keep on going!
Another great video. You need to do more on marketing...more people are looking for just your kind of videos and just haven't found you yet. Awesome stuff.
Thanks for tutorial , this is really helpful
Understood in 20min. Thank you
very clear explanation!
AWESOME! Thanks for it.