Тёмный

Learn CSS Grid in 20 Minutes 

Web Dev Simplified
Подписаться 1,6 млн
Просмотров 766 тыс.
50% 1

🚨 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

Опубликовано:

 

4 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 697   
@WebDevSimplified
@WebDevSimplified 5 лет назад
If you haven't already, make sure to checkout my Flexbox tutorial. It will make following along with this video much easier. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fYq5PXgSsbE.html
@emmanuelsofuwa280
@emmanuelsofuwa280 Год назад
Your tutorials are so helpful, thank you for simplifying the web no pun intended.
@dianale5218
@dianale5218 Год назад
where are you writing the code? also how do you put this website on the web?
@bobby3208
@bobby3208 Год назад
@@dianale5218 He's writing the code inside software called VSCode and using an extension called Live Server or running a http server with python.
@sandyjameslord
@sandyjameslord 3 года назад
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.
@worldclasscode1847
@worldclasscode1847 2 года назад
Are you sure it's good to place flexbox inside of grid? Why not flexbox in flexbox?
@dokedoke0426
@dokedoke0426 2 года назад
@@worldclasscode1847 Cuz it takes up a lot more containers, css selectors and also a lote more repeated properties, IMO.
@zombiefacesupreme
@zombiefacesupreme Год назад
@@dokedoke0426 yeah, it's pretty obvious. If you have four columns and four rows, that's one grid vs. four flexbox containers, etc.
@nikhilsinha2191
@nikhilsinha2191 Год назад
@@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
@Tenchi707
@Tenchi707 Год назад
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!
@ChantingInTheDark
@ChantingInTheDark Год назад
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.
@eobardthawne6903
@eobardthawne6903 10 месяцев назад
Thanks, was wondering the same.
@peterwoo2718
@peterwoo2718 6 месяцев назад
this reply should be pinned
@GregDowns
@GregDowns 2 года назад
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.
@caroltheman98
@caroltheman98 2 года назад
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
@dannyr2976
@dannyr2976 2 года назад
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.
@solarsequitor7374
@solarsequitor7374 2 года назад
Let's see your videos then DORK.
@FreezeMageZ
@FreezeMageZ 2 года назад
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?
@babinio7458
@babinio7458 2 года назад
@@caroltheman98 where is this particulat stylesheet?
@achengster4
@achengster4 4 года назад
I always look for Kyle when I want to learn about coding
@briandacallos4234
@briandacallos4234 4 года назад
me too
@paulbrown6792
@paulbrown6792 3 года назад
@@briandacallos4234 let me know if you find him ;) lol
@briandacallos4234
@briandacallos4234 3 года назад
@@paulbrown6792 Just search "Web Dev Simplified" and you're good to go :) Sarcasm attack ? Good luck old man
@user-og9nl5mt1b
@user-og9nl5mt1b 2 года назад
@@briandacallos4234 let the man have some fun , jackass
@rizla8602
@rizla8602 2 года назад
@@paulbrown6792 hah, good one :)
@AitorMorgado
@AitorMorgado 4 года назад
One of the best coding tutorials out there. Amazing job, my friend.
@sonotsoma
@sonotsoma 3 года назад
The amount of extremely useful information you always manage to squeeze into such a small amount of time is amazing! Thank you!
@rnater7145
@rnater7145 2 года назад
It's lean and healthy webdev "food" - no fillers, no crap. RU-vid needs a tip me $5 button!
@Tenchi707
@Tenchi707 Год назад
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!
@Islandstone89
@Islandstone89 Год назад
​@@Tenchi707I assume the background color and the numbers are coming from the background_styles.css
@tickletickle8561
@tickletickle8561 Год назад
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!!!
@zombiefacesupreme
@zombiefacesupreme Год назад
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!
@LeSaboteur3981
@LeSaboteur3981 3 года назад
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!
@amazing-ek2uo
@amazing-ek2uo Год назад
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.
@nigelnovak3096
@nigelnovak3096 4 года назад
Hey Kyle, so glad I found your channel. The explanation of grid is amazing! Clear, concise and fast. Love your work. Big thanks!
@Tenchi707
@Tenchi707 Год назад
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!
@iraklis178
@iraklis178 Год назад
@@Tenchi707 In the other file he has put the background color .New divs get the color by heritage , as some properties get passed down .
@protical261
@protical261 3 года назад
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!
@AndrewTSq
@AndrewTSq 3 года назад
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.
@parthdeshwal4419
@parthdeshwal4419 Месяц назад
this guy made this video and was able to explain the topics better than most youtubers.... thanks bud
@Coronerlex
@Coronerlex 2 года назад
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!
@ladannazary5546
@ladannazary5546 2 года назад
I looked at MANY videos on Udemy and on RU-vid 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!!
@zeppelin0110
@zeppelin0110 2 года назад
This is just beautiful. In just 10 minutes, I was able to learn enough for my immediate purposes. Thanks.
@alexisgono1729
@alexisgono1729 8 месяцев назад
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. 👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽
@ruthwik8772
@ruthwik8772 3 года назад
for background_styles.css file, you could use something like this body { color: gray; } .header { text-align: center; } .grid-container { display: grid; } .grid-item { min-height: 100px; border-width: 10px; border-style: solid; border-color: black; background-color: skyblue; }
@tommieirl1
@tommieirl1 Год назад
I love you
@313PH4N7
@313PH4N7 Год назад
Instead of typing all of these: border-width: 10px; border-style: solid; border-color: black; You could write: border: 10px solid #000; All the best.
@Tenchi707
@Tenchi707 Год назад
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 and the text even says different numbers for different items 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!
@Novodip
@Novodip Год назад
@@Tenchi707 The background styles css is for all the colors in the div
@barnabassolomon1629
@barnabassolomon1629 Год назад
bless your sould and heart
@farn451
@farn451 3 года назад
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.
@jovannovakovic5975
@jovannovakovic5975 5 лет назад
And that's exactly what we want! 😊 Awesome and simplified as always. Great job, Kyle!
@WebDevSimplified
@WebDevSimplified 5 лет назад
Thank you! I am really glad you enjoyed the video.
@Tenchi707
@Tenchi707 Год назад
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!
@danlearnstoplay2737
@danlearnstoplay2737 8 месяцев назад
@@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.
@petarkolev6928
@petarkolev6928 2 года назад
Incredibly simple explanations with nice examples! Great tutorial!
@agungaurelius1680
@agungaurelius1680 8 месяцев назад
This man is truly genius. He explains with his simplified terms. Good job!
@semaytube370
@semaytube370 Год назад
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.
@michaelsvoboda1024
@michaelsvoboda1024 4 года назад
This is PRECISELY what I was looking for, thanks a lot.
@FredericGuimont
@FredericGuimont 3 года назад
Great summary, easy to grasp and short enough to fit in my schedule. Thanks!
@olaeniola3810
@olaeniola3810 3 года назад
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!.
@Coda_n
@Coda_n 2 года назад
The 77 dislikes are from those professors who caused us to come here.
@abufattahhossain510
@abufattahhossain510 2 года назад
XD
@sandeshadhikari4785
@sandeshadhikari4785 2 года назад
Where are you from?
@Akumakie
@Akumakie 2 года назад
😂😂😂
@dekenparker-lynch1630
@dekenparker-lynch1630 2 года назад
😆😆😆
@Ahmad-qg4yj
@Ahmad-qg4yj Год назад
🤣🤣💯💯
@rustndust818
@rustndust818 3 года назад
Absolutely fantastic!! Using Grid with Flexbox is just amazing!
@xugestory
@xugestory 5 лет назад
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!
@ruthpol
@ruthpol Год назад
Fast and precise with visual examples. The exact way a video on css styling can excel. Thanks!
@anthonylatorre6592
@anthonylatorre6592 Год назад
I've been struggling to understand css grid recently but this video really helped simplify it. Thank you for your help!
@jaydeepdas1408
@jaydeepdas1408 4 года назад
Amazing explanation! Hats off to you Kyle, you have made my life easier. 😊
@reflectionethio9662
@reflectionethio9662 2 года назад
This is the most short but brief explanation, thank you kyle
@juliemassa6024
@juliemassa6024 3 года назад
That was the best explanation on this that I've seen and I understand it much better now! Thank you!
@fredriksundgren2326
@fredriksundgren2326 3 года назад
Thank you so much , I have banged my head for a few days not undrstanding grid. This video is really good.
@user-fs2zt4tk6q
@user-fs2zt4tk6q 2 года назад
The best explaination of css grid on YT, came here after getting confused by other vids. Thanks for another quality vid 🙏🏼🤙🏼
@tagalismacherrifer7603
@tagalismacherrifer7603 4 года назад
Oh thank you so much, this helps a lot... your videos becomes my reviewer and yes definitely "simplified"... You guys are awesome!
@akalrove4834
@akalrove4834 3 года назад
I was all confused about grid-column till i saw this video. Great stuff!
@codenamegrant
@codenamegrant 4 года назад
Great video, thanks for explaining the difference between flexbox and CSS grid. It's really helpful.
@zedleclair6638
@zedleclair6638 3 года назад
Just went out of my flexbox cave. Wow, what a discovery, I'll definitely use them
@dorin7022
@dorin7022 2 года назад
I love you man. Your ability to teach is incredible.
@dragonniteIV
@dragonniteIV 8 месяцев назад
This man right here explains stuff like it's very easy. I always wonder why i found things difficult after hearing your explanation! Well done sir!
@slava_in3757
@slava_in3757 3 года назад
Great tutorial. Very concise and informative, made great help for me. Thank you, Web Dev Simplified!
@SpiritualFacts
@SpiritualFacts 4 года назад
really awesome and in depth, better then other tutorials in RU-vid
@CC-bm3wb
@CC-bm3wb 2 года назад
Good tutorial, really helped me watching you do the examples in real time than just reading it!
@laffinkippah
@laffinkippah 3 года назад
Great content. Concise and comprehensive. Thank you!
@nehakumar9889
@nehakumar9889 4 года назад
Amazingly explained 🌼 Now building my final year project with your help 🌹
@iamtharunraj
@iamtharunraj 11 месяцев назад
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!
@verakorchemnaya3971
@verakorchemnaya3971 2 года назад
Very good video! Thank you for talking about justify-content / align-content and justify-items / align-items. Made things very clear in my mind!
@Cheesedipper32
@Cheesedipper32 2 года назад
Thank you so much for this one, best explanation of css grid I've heard!
@osamashehab463
@osamashehab463 Год назад
I haven't watched the video yet but I would like to thank you for your amazing videos including the Calculator and the clock
@sharriceowens913
@sharriceowens913 3 года назад
u have a fucking gift for teaching please never stop...cause i never wanna stop learning
@XL-Freak
@XL-Freak Год назад
Hi Kyle, being new to css, with only minimal html knowledge, I am somewhat overwhelmed by all this new technology. One thing I've been researching recently is a way to create tables without using html TABLE tags. I figured the answer had to be flex or grid, but this is the first of several, let me stress SEVERAL, video's I've watched that actually answered this question for me, as well as differentiating between the two! Now it looks so amazingly simple! Thank you so much!!!
@diphlexusmngadi2926
@diphlexusmngadi2926 4 года назад
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.
@RichardPetron
@RichardPetron Год назад
This is as good as a tutorial gets, very impressive thank for this
@johmcg64
@johmcg64 3 года назад
You are an excellent teacher. I need to get better at it so I can follow along at you speed.
@Markus-iq4sm
@Markus-iq4sm Год назад
One of the best tutorials on the CSS Grids
@jeyzzz696
@jeyzzz696 4 года назад
its my first time watching this and im not getting the idea right away on the advanced concepts (grid-column). ill try to watch a few more times. wish me luck.
@eborne66
@eborne66 3 года назад
Thanks for your concise and comprehensive tutorials.
@value_investing_indonesia
@value_investing_indonesia 3 года назад
omg you are the only person that i understand when listening css Thank you
@Greg4510able
@Greg4510able 2 месяца назад
Kyle, you continue to be the man. Keep up the great work. Thanks for the knowledge, God bless you.
@abikuneebus
@abikuneebus Год назад
you're a hero, dude. completed freeCodeCamp's Responsive Web Design course, but somehow flex and grid didn't click until I watched your 15 and 20 minute courses.
@cosme2441
@cosme2441 3 года назад
Thanks for the helpful content. Clear and concise!
@XjafnerX
@XjafnerX 4 года назад
best video i ve seen about grid, thank you so much
@tyt9602
@tyt9602 3 года назад
Admire you.Good guy ever.Thankful for every videos I had ever watched!
@mohamedelgazar5283
@mohamedelgazar5283 Год назад
thank you very much for such demenstrative break down it's amazing what you can explain in 20 mins.
@aissaserrar3059
@aissaserrar3059 4 года назад
thank you so much for this video, you and Dev Ed are the best
@WebDevSimplified
@WebDevSimplified 4 года назад
You're welcome! I'm glad you enjoyed it.
@adekunlefhunkie2170
@adekunlefhunkie2170 9 месяцев назад
not boring and very impactful. my fave webdev youtuber🥰
@jwilliams8210
@jwilliams8210 2 года назад
Kyle, you explain things well. Thanks!
@ampsassociation6003
@ampsassociation6003 4 года назад
Very helpful, loving these tutorials!
@WebDevSimplified
@WebDevSimplified 4 года назад
Thanks!
@WebDeveloper682
@WebDeveloper682 11 месяцев назад
i swear it is the best grid explanation video for me
@andresrosales3466
@andresrosales3466 3 года назад
Best tutorial i've found for grid so far :)
@minphonemyat2351
@minphonemyat2351 3 года назад
your voice is so clear and your explanations are effective. thank you very much
@user-kn4oi9oh4i
@user-kn4oi9oh4i 6 месяцев назад
this guy is the true OG! Thanks alot for this content bro
@neon13x
@neon13x 3 года назад
Your tutorials are exactly how we want it :)
@_.sunnyraj._
@_.sunnyraj._ 3 года назад
You and Ed are the best explainers of these things
@timobrien4190
@timobrien4190 3 года назад
Wow this really made sense and helped. Can’t wait to apply!
@dianatodorova9799
@dianatodorova9799 Год назад
Super useful tutorial. I subscribed immediately. The lectures are simply explained and easy to listen and understand. Happy to find this channel. :)
@leandrolobo
@leandrolobo 3 года назад
Thanks! great tutorial, direct to the point.
@quentalthermilus7199
@quentalthermilus7199 4 года назад
Your videos are great. Very easy to understand and follow.
@phucphamhuu4809
@phucphamhuu4809 2 года назад
so straightforward and approachable
@BlackDev
@BlackDev 2 года назад
watching this before i do my course with kevin on scrimba so helpful love you two
@karentrevino6904
@karentrevino6904 3 года назад
Impeccable teaching! Thanks for sharing your gift :)
@Zen-lz1hc
@Zen-lz1hc 2 года назад
Like :) Great! Much appreciated for putting this together in just 20min. You concentrated really well a lot of what CSS GRID is in a very short video. Really cool
@keithgrill3884
@keithgrill3884 Год назад
Dropping a line because I've watched a few of your videos (snake JS, pong JS, and this one) and this is great content. Thank you!
@SHiniGAMi_007
@SHiniGAMi_007 10 месяцев назад
One of the best channels out there Thank you for this video
@harag9
@harag9 4 года назад
Wow CSS has changed quite a bit, used to work with it 15 years ago and not touched it for a long time. You can do so much more now with it. Great video!
@WebDevSimplified
@WebDevSimplified 4 года назад
CSS is amazing now. It used to be a pain to do anything with tables/floats, but now there is flex and grid which make layouts fun to make.
@macrooooo__
@macrooooo__ Год назад
thank you for this. solved my frontendmentor assignment.
@neevbadu3611
@neevbadu3611 Год назад
Thanks alot you made grid so much clear...
@arnav_0397
@arnav_0397 3 года назад
You're amazing, you always clear my doubt
@alekhandrosuarez2832
@alekhandrosuarez2832 3 года назад
You just saved my project! Thanks!
@ddabral
@ddabral Год назад
Thanks a lot, sir, I was confused for almost a week but now I am very confident really thanks a lot.🙏
@mattwood2002
@mattwood2002 2 года назад
I love the pace of this dude
@calmingcoffeerain6217
@calmingcoffeerain6217 4 месяца назад
You are amazing man! best Ive seen. Thanks so much!
@michaelmaldo7345
@michaelmaldo7345 Год назад
really easy to follow -- good flow order of concepts!! thumbs up man!!
@otabekxudoyberdiyev6126
@otabekxudoyberdiyev6126 2 месяца назад
Just super Css Grid tutorial man!
@javascript_developer
@javascript_developer 3 года назад
Awesome grid-area and grid-template-area. thanks for the lovely video
@AERNIGH
@AERNIGH Год назад
Wish I had seen this earlier, the video makes it so easy to understand.
@JoaoPaulo-ox6pr
@JoaoPaulo-ox6pr 2 года назад
This channel is simply amazing!
Далее
JavaScript Promises In 10 Minutes
11:31
Просмотров 1,7 млн
Learn Flexbox in 15 Minutes
15:12
Просмотров 1,1 млн
МИЛОТА🥹
00:11
Просмотров 134 тыс.
How to take control of Flexbox
16:01
Просмотров 99 тыс.
Learn CSS Grid - A 13 Minute Deep Dive
13:35
Просмотров 457 тыс.
Get started with grid WITHOUT being overwhelmed
9:39
Learn CSS flexbox in 10 minutes! 💪
10:01
Просмотров 107 тыс.
Is Drizzle Really Better Than Prisma?
20:15
Просмотров 66 тыс.
Learn CSS Grid the easy way
37:04
Просмотров 868 тыс.
Flexbox design patterns you can use in your projects
15:33
Learn Every CSS Selector In 20 Minutes
19:38
Просмотров 435 тыс.
Learn flexbox the easy way
34:04
Просмотров 676 тыс.