Learn CSS Grid in 20 Minutes

Sdílet
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

Komentáře • 697

  • @WebDevSimplified
    @WebDevSimplified  Před 5 lety +115

    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

    • @emmanuelsofuwa280
      @emmanuelsofuwa280 Před rokem

      Your tutorials are so helpful, thank you for simplifying the web no pun intended.

    • @dianale5218
      @dianale5218 Před rokem

      where are you writing the code? also how do you put this website on the web?

    • @bobby3208
      @bobby3208 Před rokem

      @@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 Před 3 lety +310

    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 Před 2 lety +3

      Are you sure it's good to place flexbox inside of grid? Why not flexbox in flexbox?

    • @dokedoke0426
      @dokedoke0426 Před 2 lety +5

      @@worldclasscode1847 Cuz it takes up a lot more containers, css selectors and also a lote more repeated properties, IMO.

    • @zombiefacesupreme
      @zombiefacesupreme Před rokem +5

      @@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 Před rokem +1

      @@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 Před rokem +1

      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!

  • @Coda_n
    @Coda_n Před 3 lety +411

    The 77 dislikes are from those professors who caused us to come here.

  • @ChantingInTheDark
    @ChantingInTheDark Před rokem +35

    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.

  • @achengster4
    @achengster4 Před 4 lety +247

    I always look for Kyle when I want to learn about coding

    • @briandacallos4234
      @briandacallos4234 Před 4 lety +1

      me too

    • @paulbrown6792
      @paulbrown6792 Před 3 lety +8

      @@briandacallos4234 let me know if you find him ;) lol

    • @briandacallos4234
      @briandacallos4234 Před 3 lety +4

      @@paulbrown6792 Just search "Web Dev Simplified" and you're good to go :) Sarcasm attack ? Good luck old man

    • @user-og9nl5mt1b
      @user-og9nl5mt1b Před 2 lety +4

      @@briandacallos4234 let the man have some fun , jackass

    • @rizla8602
      @rizla8602 Před 2 lety

      @@paulbrown6792 hah, good one :)

  • @sonotsoma
    @sonotsoma Před 3 lety +136

    The amount of extremely useful information you always manage to squeeze into such a small amount of time is amazing! Thank you!

    • @rnater7145
      @rnater7145 Před 2 lety +1

      It's lean and healthy webdev "food" - no fillers, no crap. CZcams needs a tip me $5 button!

    • @Tenchi707
      @Tenchi707 Před rokem

      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 Před rokem

      ​@@Tenchi707I assume the background color and the numbers are coming from the background_styles.css

  • @nigelnovak3096
    @nigelnovak3096 Před 4 lety +55

    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 Před rokem

      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 Před rokem

      @@Tenchi707 In the other file he has put the background color .New divs get the color by heritage , as some properties get passed down .

  • @tickletickle8561
    @tickletickle8561 Před rokem +6

    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!!!

  • @GregDowns
    @GregDowns Před 2 lety +77

    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 Před 2 lety +14

      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 Před 2 lety +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 Před 2 lety

      Let's see your videos then DORK.

    • @FreezeMageZ
      @FreezeMageZ Před 2 lety

      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 Před 2 lety

      @@caroltheman98 where is this particulat stylesheet?

  • @amazing-ek2uo
    @amazing-ek2uo Před rokem +10

    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.

  • @AitorMorgado
    @AitorMorgado Před 4 lety +20

    One of the best coding tutorials out there. Amazing job, my friend.

  • @protical261
    @protical261 Před 3 lety +54

    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 Před 3 lety +2

      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.

  • @zombiefacesupreme
    @zombiefacesupreme Před rokem +7

    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 Před 3 lety +6

    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!

  • @alexisgono1729
    @alexisgono1729 Před 8 měsíci +2

    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.
    👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽

  • @parthdeshwal4419
    @parthdeshwal4419 Před 2 měsíci +1

    this guy made this video and was able to explain the topics better than most youtubers.... thanks bud

  • @ladannazary5546
    @ladannazary5546 Před 2 lety +8

    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!!

  • @jovannovakovic5975
    @jovannovakovic5975 Před 5 lety +26

    And that's exactly what we want! 😊
    Awesome and simplified as always.
    Great job, Kyle!

    • @WebDevSimplified
      @WebDevSimplified  Před 5 lety +3

      Thank you! I am really glad you enjoyed the video.

    • @Tenchi707
      @Tenchi707 Před rokem

      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 Před 8 měsíci

      @@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.

  • @zeppelin0110
    @zeppelin0110 Před 2 lety +4

    This is just beautiful. In just 10 minutes, I was able to learn enough for my immediate purposes. Thanks.

  • @Coronerlex
    @Coronerlex Před 2 lety +1

    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!

  • @petarkolev6928
    @petarkolev6928 Před 2 lety +3

    Incredibly simple explanations with nice examples! Great tutorial!

  • @FredericGuimont
    @FredericGuimont Před 3 lety +3

    Great summary, easy to grasp and short enough to fit in my schedule. Thanks!

  • @farn451
    @farn451 Před 3 lety

    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.

  • @semaytube370
    @semaytube370 Před rokem +4

    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 Před 4 lety +1

    This is PRECISELY what I was looking for, thanks a lot.

  • @ruthpol
    @ruthpol Před rokem

    Fast and precise with visual examples. The exact way a video on css styling can excel. Thanks!

  • @user-fs2zt4tk6q
    @user-fs2zt4tk6q Před 2 lety

    The best explaination of css grid on YT, came here after getting confused by other vids. Thanks for another quality vid 🙏🏼🤙🏼

  • @laffinkippah
    @laffinkippah Před 3 lety

    Great content. Concise and comprehensive. Thank you!

  • @slava_in3757
    @slava_in3757 Před 3 lety

    Great tutorial. Very concise and informative, made great help for me. Thank you, Web Dev Simplified!

  • @rustndust818
    @rustndust818 Před 3 lety

    Absolutely fantastic!! Using Grid with Flexbox is just amazing!

  • @hsiang-yehhwang2625
    @hsiang-yehhwang2625 Před rokem

    This tutorial is amazing!! clear!! Thanks!!

  • @juliemassa6024
    @juliemassa6024 Před 3 lety

    That was the best explanation on this that I've seen and I understand it much better now! Thank you!

  • @agungaurelius1680
    @agungaurelius1680 Před 8 měsíci

    This man is truly genius. He explains with his simplified terms. Good job!

  • @Markus-iq4sm
    @Markus-iq4sm Před rokem

    One of the best tutorials on the CSS Grids

  • @jaydeepdas1408
    @jaydeepdas1408 Před 4 lety

    Amazing explanation! Hats off to you Kyle, you have made my life easier. 😊

  • @iamtharunraj
    @iamtharunraj Před 11 měsíci

    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!

  • @SpiritualFacts
    @SpiritualFacts Před 4 lety

    really awesome and in depth, better then other tutorials in CZcams

  • @cosme2441
    @cosme2441 Před 3 lety

    Thanks for the helpful content. Clear and concise!

  • @JoaoPaulo-ox6pr
    @JoaoPaulo-ox6pr Před 2 lety

    This channel is simply amazing!

  • @xugestory
    @xugestory Před 5 lety +1

    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!

  • @neevbadu3611
    @neevbadu3611 Před rokem

    Thanks alot you made grid so much clear...

  • @eborne66
    @eborne66 Před 3 lety

    Thanks for your concise and comprehensive tutorials.

  • @verakorchemnaya3971
    @verakorchemnaya3971 Před 2 lety

    Very good video! Thank you for talking about justify-content / align-content and justify-items / align-items. Made things very clear in my mind!

  • @mohamedelgazar5283
    @mohamedelgazar5283 Před rokem

    thank you very much for such demenstrative break down it's amazing what you can explain in 20 mins.

  • @reflectionethio9662
    @reflectionethio9662 Před 2 lety

    This is the most short but brief explanation, thank you kyle

  • @olaeniola3810
    @olaeniola3810 Před 3 lety +4

    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!.

  • @Cheesedipper32
    @Cheesedipper32 Před 2 lety

    Thank you so much for this one, best explanation of css grid I've heard!

  • @michaelmaldo7345
    @michaelmaldo7345 Před rokem

    really easy to follow -- good flow order of concepts!! thumbs up man!!

  • @codenamegrant
    @codenamegrant Před 4 lety

    Great video, thanks for explaining the difference between flexbox and CSS grid. It's really helpful.

  • @CC-bm3wb
    @CC-bm3wb Před 2 lety

    Good tutorial, really helped me watching you do the examples in real time than just reading it!

  • @quentalthermilus7199
    @quentalthermilus7199 Před 4 lety

    Your videos are great. Very easy to understand and follow.

  • @Greg4510able
    @Greg4510able Před 2 měsíci

    Kyle, you continue to be the man. Keep up the great work. Thanks for the knowledge, God bless you.

  • @calmingcoffeerain6217
    @calmingcoffeerain6217 Před 4 měsíci

    You are amazing man! best Ive seen. Thanks so much!

  • @tagalismacherrifer7603

    Oh thank you so much, this helps a lot... your videos becomes my reviewer and yes definitely "simplified"...
    You guys are awesome!

  • @leandrolobo
    @leandrolobo Před 3 lety

    Thanks! great tutorial, direct to the point.

  • @jwilliams8210
    @jwilliams8210 Před 2 lety

    Kyle, you explain things well. Thanks!

  • @dorin7022
    @dorin7022 Před 2 lety +1

    I love you man. Your ability to teach is incredible.

  • @anthonylatorre6592
    @anthonylatorre6592 Před rokem

    I've been struggling to understand css grid recently but this video really helped simplify it. Thank you for your help!

  • @singhravjot
    @singhravjot Před rokem

    Great Explanation! Thanks

  • @akalrove4834
    @akalrove4834 Před 3 lety

    I was all confused about grid-column till i saw this video. Great stuff!

  • @SHiniGAMi_007
    @SHiniGAMi_007 Před 11 měsíci

    One of the best channels out there
    Thank you for this video

  • @mattwood2002
    @mattwood2002 Před 2 lety

    I love the pace of this dude

  • @adekunlefhunkie2170
    @adekunlefhunkie2170 Před 9 měsíci

    not boring and very impactful. my fave webdev youtuber🥰

  • @ougininja8412
    @ougininja8412 Před rokem

    easy to understand, thx very much for making the video

  • @phucphamhuu4809
    @phucphamhuu4809 Před 2 lety

    so straightforward and approachable

  • @karentrevino6904
    @karentrevino6904 Před 3 lety

    Impeccable teaching! Thanks for sharing your gift :)

  • @ampsassociation6003
    @ampsassociation6003 Před 4 lety +4

    Very helpful, loving these tutorials!

  • @fredriksundgren2326
    @fredriksundgren2326 Před 3 lety

    Thank you so much , I have banged my head for a few days not undrstanding grid.
    This video is really good.

  • @dekenparker-lynch1630
    @dekenparker-lynch1630 Před 2 lety

    Maaaaan this was right on point! Appreciate it !

  • @m00mai
    @m00mai Před 2 lety

    you save me so much time!! good stuff !!

  • @dianatodorova9799
    @dianatodorova9799 Před rokem

    Super useful tutorial. I subscribed immediately. The lectures are simply explained and easy to listen and understand. Happy to find this channel. :)

  • @tyt9602
    @tyt9602 Před 3 lety

    Admire you.Good guy ever.Thankful for every videos I had ever watched!

  • @haidyibrahim481
    @haidyibrahim481 Před 2 lety

    Very helpful. Thank you!

  • @ygaaaoo
    @ygaaaoo Před 2 lety

    you helped me a lot, thanks mate.

  • @user-kn4oi9oh4i
    @user-kn4oi9oh4i Před 6 měsíci

    this guy is the true OG! Thanks alot for this content bro

  • @WebDeveloper682
    @WebDeveloper682 Před 11 měsíci

    i swear it is the best grid explanation video for me

  • @hetroxity
    @hetroxity Před rokem

    Thank you bro for your time. I really pleased

  • @alxcandraw
    @alxcandraw Před rokem

    Really helpful man. Thank you!

  • @otabekxudoyberdiyev6126
    @otabekxudoyberdiyev6126 Před 3 měsíci

    Just super Css Grid tutorial man!

  • @michaelanthony4750
    @michaelanthony4750 Před 2 lety

    straight and to the point

  • @bakimonoka3611
    @bakimonoka3611 Před 4 měsíci

    Thank so much : So clear!!!

  • @zedleclair6638
    @zedleclair6638 Před 3 lety +2

    Just went out of my flexbox cave. Wow, what a discovery, I'll definitely use them

  • @macrooooo__
    @macrooooo__ Před rokem

    thank you for this. solved my frontendmentor assignment.

  • @aissaserrar3059
    @aissaserrar3059 Před 4 lety +4

    thank you so much for this video, you and Dev Ed are the best

  • @timobrien4190
    @timobrien4190 Před 3 lety

    Wow this really made sense and helped. Can’t wait to apply!

  • @musicartschannel1096
    @musicartschannel1096 Před rokem

    great video as always, good summary

  • @javascript_developer
    @javascript_developer Před 3 lety

    Awesome grid-area and grid-template-area. thanks for the lovely video

  • @sharriceowens913
    @sharriceowens913 Před 3 lety +3

    u have a fucking gift for teaching please never stop...cause i never wanna stop learning

  • @Sameera.
    @Sameera. Před 2 lety

    Love your content man Thank you very much

  • @olga6802
    @olga6802 Před rokem

    Excellent explanation, thanks.

  • @nhantran8254
    @nhantran8254 Před 2 lety

    Very useful, big thank!

  • @XjafnerX
    @XjafnerX Před 4 lety

    best video i ve seen about grid, thank you so much

  • @maryloucortez7969
    @maryloucortez7969 Před 8 měsíci

    this helps me a lot, thank you

  • @kimjiyoung8655
    @kimjiyoung8655 Před 2 lety +1

    Thank you so much. Great teacher!

  • @MayCodeGuide
    @MayCodeGuide Před rokem

    great content, very informative thank you, keep on going!

  • @diphlexusmngadi2926
    @diphlexusmngadi2926 Před 4 lety +1

    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.

  • @timbertunem1959
    @timbertunem1959 Před rokem

    Thanks for tutorial , this is really helpful

  • @bufpalful
    @bufpalful Před 2 lety

    Understood in 20min. Thank you

  • @vickeywu8970
    @vickeywu8970 Před rokem

    very clear explanation!

  • @clertonsampaio6292
    @clertonsampaio6292 Před 2 lety

    AWESOME! Thanks for it.