The Joy of CSS Grid - Build 3 Beautifully Simple Responsive Layouts

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 372

  • @toxaq
    @toxaq 4 роки тому +485

    Your content is unmatched in quality, timeliness and usefulness.

  • @jamesbest3347
    @jamesbest3347 4 роки тому +618

    Man your content is so on point and so professionally made. Blows my mind how you can keep up content like this. Thank you so much for your support of developers. Like Steve Balmer always said, "DEVELOPERS, DEVELOPERS, DEVELOPERS!!!"

    • @RicardoBarbosaSousa
      @RicardoBarbosaSousa 4 роки тому +2

      James Best I have to agree

    • @DavidElstob73
      @DavidElstob73 4 роки тому +2

      Definitely - my understanding of grid was growing, but five minutes of this video and it's multiplied ten fold.

    • @ypucandeleteit
      @ypucandeleteit 4 роки тому +2

      you took the words out of my mouth. Hip hip for Fireship

    • @netxyz00
      @netxyz00 4 роки тому +1

      Indeed, amazing lesson!

    • @cianmoriarty7345
      @cianmoriarty7345 2 роки тому

      Like Steve Balmer always said: "I'm hungry. Bring me another baby"

  • @AlexDBaxter
    @AlexDBaxter 3 роки тому +82

    Great vid! Really like the animated entry. One technique I have used instead of lots of :nth-child(1) rules is to put variables on the element in the HTML. So for the animated grid example, the divs look like:
    a
    b
    c
    d
    and the CSS can be done in one rule:
    .card {
    animation: cardEntrance 700ms ease-out;
    animation-fill-mode: backwards;
    grid-area: var(--g);
    animation-delay: calc(var(--i) * var(--stagger-delay));
    }
    - this keeps the repetition in the HTML where it is going to be anyway.

    • @RobertMcGovernTarasis
      @RobertMcGovernTarasis 2 роки тому +2

      Thank you

    • @cedwards427
      @cedwards427 2 роки тому +1

      OOooo, I like this. Coming from Python/Java any kind of repetition has that bad code smell. The next thing I want to work out is to make the grid general enough to handle a variable number of children.

  • @vellendev
    @vellendev 4 роки тому +167

    I need to start using this over Bootstrap. Awesome video as always!

    • @Fireship
      @Fireship  4 роки тому +41

      You won't be disappointed, it only took an hour or two to replace all my grids on Fireship.io

    • @abednegosteven-4423
      @abednegosteven-4423 4 роки тому +3

      @@Fireship wth man, your fireship.io website is just so awesome dang it

  • @KedarKanekar
    @KedarKanekar Рік тому +2

    It's been 3 years and I keep coming back to videos like this to re-learn. Lots of love, my Captain!

  •  4 роки тому +14

    It's amazing how in a short period of time you manage to cover alot about the topic. Simple, highly educational and easy to watch, simply awesome!

  • @igorskyflyer
    @igorskyflyer 4 роки тому +61

    2:57 let's start by giving our children a little bit of spacing. 🤣
    Jeff, you must/will be a great father. 😍

    • @zafirhasananogh2421
      @zafirhasananogh2421 2 роки тому +1

      I was just watching this video now and saw your comment, Jeff had a child recently! Congratulations to him:3

    • @igorskyflyer
      @igorskyflyer 2 роки тому +1

      @@zafirhasananogh2421 wow, thanks for reminding of this comment I made, now it's come true, I say congratulations again, Jeff, as well. 🥳😄

  • @iftruth
    @iftruth 4 роки тому +43

    been practicing grid for a year and didn't know about auto-fit / auto-fill mode
    thanks a lot!

  • @arjunyelamanchili3517
    @arjunyelamanchili3517 4 роки тому +30

    The card entry animation is beautiful 😍

  • @alihaydargubatov2790
    @alihaydargubatov2790 4 роки тому +33

    *A backend dev here* just to say that İ understood everything amazing

    • @LeoStaley
      @LeoStaley 3 роки тому

      Front end is so hard. Back end has it easy.

    • @Dima1415
      @Dima1415 3 роки тому

      Ï don't understand your letter Ī

  • @punsmith
    @punsmith 4 роки тому +4

    Goddammit, I have subscribed already and I somehow managed to miss this one. I'm a late-starter Millenial, but you make me feel like a little kid that sees new and exciting things with glee. The more we can do ourselves without relying on systems like bootstrap, the better. Not that bootstrap should be hated on either, but it's far too large for many projects. Thanks for your hard work!

  • @BigSmoke-r9w
    @BigSmoke-r9w 11 місяців тому +1

    You earned yourself another subscriber good sir! Thank you!
    P.S. (edited)
    I just finished watching and this is exactly what I was looking for! Thank you very much!

  • @enan0sh
    @enan0sh 2 роки тому

    I saw this video a couple of months back, today a bug was raised at my current job about some cards not being shown correctly on smaller screens and I just had to come back to this video to remember how to do it, thanks man!

  • @petedejager
    @petedejager 2 роки тому +1

    I can only agree with what everyone else is saying, your content is in a class of its own. You simplify complexity and have a talent for understanding concepts in such depth that you can convey the most useful bits clearly and logically. No surprise that your channel is doing so well. Thank you and respect!

  • @meakra5350
    @meakra5350 4 роки тому +2

    I watch this video during my workout, and I have to hurry finishing it up so that I can write the code out. Awsome video, man

  • @jaydenmoon1165
    @jaydenmoon1165 3 роки тому +1

    I find it insane that you don't have like a billion subs - your videos are extremely helpful and perfect length - freaking great man!!!

  • @yt-sh
    @yt-sh 4 роки тому +5

    I think this maybe the best css Grid video I have yet seen

  • @hillycrypto3416
    @hillycrypto3416 2 роки тому

    I've been watching a lot of UA-cam videos to understand grid but never understood it but your videos explanations are so simple and easy to understand. Thanks bro

  • @akhillshetty2140
    @akhillshetty2140 4 роки тому +10

    UA-cam really needs to add a Superlike button, especially for this video! I'd hit it in a heartbeat

  • @suvraneelsaha7857
    @suvraneelsaha7857 Рік тому +1

    As a newbie web developer , Learning grid for me is super awesome , thanks to you mate cheers .

  • @AlexSpieslechner
    @AlexSpieslechner 4 роки тому +2

    i absolutely love the mix of on-point content, clear structure and the occasional gifs and memes. your channel is one of instant recommendations for any web dev. thank you for putting so much effort into these videos.

  • @codewithlenny
    @codewithlenny 3 роки тому +4

    I am a full-stack developer focused primarily on the backend. I am currently working on my frontend skills and your channel has been a very helpful resource. Thanks

  • @almohaiminfarabi9181
    @almohaiminfarabi9181 3 роки тому

    You are just different then others. I am a begainer. To understand grid i have already watched 20+ video on UA-cam. But no one explained how i can make a photo gallery like this. This video is only 11 minutes long. But its explain a lot. 👌👌👌

  • @strahinja1107
    @strahinja1107 4 роки тому

    Pure gold. Short and precise, 0 bullshit. Reminds me of legendary 'kudvenkat' channel for .NET.

  • @digigoliath
    @digigoliath 4 роки тому +6

    Good job man! Teaches GRID very well. Great presentation with simple-to-understand demos! SMASHING the LIKE button!!!!

  • @flwi
    @flwi Місяць тому

    Man - why haven't I seen this video before?? This is an awesome explanation!

  • @ashwinkumarpillai8923
    @ashwinkumarpillai8923 4 роки тому

    I have used grid before and watched many videos on it but this is by far the best video I came across.

  • @frankieflood7936
    @frankieflood7936 3 роки тому

    That idea for passing the grid-area as the shape it occupies in the final layout is fantastic, I love it! Great video, thank you!

  • @fabianw.7896
    @fabianw.7896 3 роки тому

    Respect, die best tutorial i watched for CSS-Grid right now!

  • @LeoPacheco87
    @LeoPacheco87 4 роки тому +2

    Omg, thats amazing... incredible how you can work for years in the code writing industry and learn something every day

  • @auguststas7770
    @auguststas7770 2 роки тому

    I'm working on website for 8 hours now, and seeing this video is blessing

  • @shiro3940
    @shiro3940 2 роки тому

    how could one make an explanation video in such a short duration, yet the explanation itself is so on-point

  • @stevieholland3579
    @stevieholland3579 2 роки тому

    This the the most well structured video I have seen on grid and it helped a ton. Thank you. Impressive how well you had such a liner path. Most vids I see kind of just throw a zillion terms at you and it’s kind of like information through a fire hose, but the flow of your video and the execution was perfect.

  • @HardHitMag
    @HardHitMag 11 місяців тому

    THANK YOU i was looking for ages for such an easy to follow Explanation

  • @aijiexi
    @aijiexi 3 роки тому

    You explain this very well, and thank you so much for not having distracting background music!

  • @DarkPa1adin
    @DarkPa1adin 3 роки тому

    I watch a few videos and read a few articles on CSS Grid. Your explanation helps me understand repeat(#, size)

  • @ThiagoVieira91
    @ThiagoVieira91 4 роки тому +2

    Man I was woefully in need of good grid tutorials. Yours is awesome! 👏🏼
    Please keep more grid coming!

  • @gouravkumar772
    @gouravkumar772 2 роки тому

    Super helpful, Each part deserve a detailed video itself, thanks

  • @DavidNBooth
    @DavidNBooth Рік тому

    This was great! Followed along and learned a lot. One note for others: if you don't get the `grid-template-areas` exactly right, it will break everything. E.g. if you don't assign the "main" element correctly or have even one element misassigned, the whole layout gets destroyed.

  • @trimbotee4653
    @trimbotee4653 4 роки тому +2

    This video is great! I've been trying to level up my CSS. There is way too much CSS in my projects. This is a perfect way to cut down my CSS volume.

  • @MaamarYacineMEDDAH
    @MaamarYacineMEDDAH 4 роки тому

    SO PROUD of this channel ! Thank you so much Jeff for your excellent work

  • @Migueligr2000
    @Migueligr2000 4 роки тому

    I never writte coments on videos but yours is just sublime, thanks alot.

  • @mahmoudiamir
    @mahmoudiamir 2 роки тому

    This is great😬I was struggling with css fitting for years, I just learned how grid can wrap all the problems up...

  • @abeechr
    @abeechr 4 роки тому +1

    Unbelievable the quantity of amazing content you crank out. Thank you!

  • @duckmasterflex
    @duckmasterflex 4 роки тому

    I started playing with grid for the first time last week. I LOVE IT.

  • @FriedrichBoettger
    @FriedrichBoettger 4 роки тому +1

    I use basic grid, but I had no idea you could do these animations with only css. That's a killer. I might never use this in a production app, but it sure is fun learning how. Thanks.

  • @12PnT12
    @12PnT12 2 роки тому

    The basic grid was exactly what I needed for my website. Thanks!

  • @Noone-ig5ui
    @Noone-ig5ui 4 роки тому +1

    It is nice to see developer advocate using Firefox for their demos.

    • @Fireship
      @Fireship  4 роки тому +3

      I actually use brave for the most part, but firefox has an awesome grid inspector.

  • @JerWodke2012
    @JerWodke2012 3 роки тому

    I love the clips you add in your videos, they crack me up lol.

  • @juanandrescastillofuenmayo6619
    @juanandrescastillofuenmayo6619 3 роки тому +1

    Man, I love your content so much, you and Traversy media are like the Webdev gods hahaha, both of you are incredibly helpful. I'll be sure to tell you if I ever get a job, cause it'll be thanks to your teachings.

    • @juanandrescastillofuenmayo6619
      @juanandrescastillofuenmayo6619 3 роки тому

      Doing my Databases 1 class final project rn on Angular with Material Design. This is VERY helpful. I'm 100% sure I'll still be checking out this video when in my first job.

  • @josephlivengood4508
    @josephlivengood4508 2 роки тому

    ooohh how I miss Boss Ross' show. I'm not an artist but his voice and the energy he put into his paint work is almost like me building a website for a client!

  • @shadowpenteado
    @shadowpenteado 3 роки тому +1

    Sensational content. I love the way you explain and demonstrate how things works. Big thank you!

  • @JoolsParker
    @JoolsParker 4 роки тому +14

    Great informative video! Question: When should you use Flexbox and when should you use CSS Grid for layout? Does one have an advantage over the other in terms of layout flexibility?

    • @Fireship
      @Fireship  4 роки тому +20

      I would lean towards grid if you have a layout that requires BOTH columns and rows. Lean towards flexbox you just have something with single row/col, like a card or navbar.

    • @JoolsParker
      @JoolsParker 4 роки тому +2

      Fireship yup, makes sense - cheers for the reply 👍

  • @Riko2909
    @Riko2909 4 роки тому

    Found this Channel around one week ago and man i love every single Minute of your content. :)

  • @pepisnazos
    @pepisnazos 4 роки тому

    I love your videos, I was looking just because they are entertainment, but after a while you present me this complex world in a way so enjoyable and simple that i love it and i start to build apps. THX YOU (LLL)

  • @rebelion1
    @rebelion1 2 роки тому

    Wow that was two years ago?!?!?!?!
    Great video. CSS is so much

  • @alexdith9024
    @alexdith9024 4 роки тому +2

    Jeez, Im in love with this channel. It's like Jeff knows what I want to learn about!

  • @saurabh75prakash
    @saurabh75prakash 2 роки тому

    The highest quality content on web-dev on the web. Thanks 🙏

  • @ziaahmad8738
    @ziaahmad8738 4 роки тому

    Thank u very much.
    I knew how to work with basic grid properties but u made it very easy and clear for me.

  • @inflame1994
    @inflame1994 4 роки тому

    Such perfect video on grid and mainly lot of valuable information put together in 12min video..that is just great

  • @mfrdbigolin
    @mfrdbigolin 3 роки тому +1

    I have never heard about this until now, interesting feature.

  • @coderwork8335
    @coderwork8335 Рік тому

    your editing is on whole under level, loved 0:40 a lot 😂😂

  • @Hohumbogey
    @Hohumbogey 4 роки тому

    Starting off with the legendary Bob Ross! Instant fan

  • @michelribbens8014
    @michelribbens8014 4 роки тому

    Awesome video and examples! Hope you will add a lot more of these about CSS Grid

  • @code-maestro
    @code-maestro 3 роки тому

    THE BEST GRID LAYOUT VIDEO THERE IS

  • @johanledel1407
    @johanledel1407 4 роки тому +1

    Awesome video as always! Well made and easy to follow. Thank you.

  • @mountainslopes
    @mountainslopes 3 роки тому +1

    Finally, Chrome Dev Tools has grid visualization 😍

  • @mahin_panchal
    @mahin_panchal 3 роки тому

    This is literally an underrated channel!

  • @edberaga
    @edberaga 2 роки тому

    This is the best grid lesson ever!

  • @MrAlexVelik
    @MrAlexVelik 2 роки тому

    That is exactly what I was looking for! ily man

  • @iqwebserve3973
    @iqwebserve3973 2 роки тому +1

    Great video. As an update to it, we now have @container in CSS 3.

  • @shibuyajin_music
    @shibuyajin_music 4 роки тому +1

    0:33 not gonna lie this snippet would make a banger of a lo-fi hip hop track

  • @shreerangvaidya9264
    @shreerangvaidya9264 4 роки тому

    Great video! Your channel deserves more than this.

  • @Potatis1337
    @Potatis1337 4 роки тому

    Your videos are godlike in both presentation, flow and content. 11/10

  • @meetbardoliya6645
    @meetbardoliya6645 2 роки тому

    Thnaks a lot :) You made me fall in love with CSS

  • @youranonymousyoutuber4051
    @youranonymousyoutuber4051 4 роки тому +1

    dude your course is golden

  • @arnauddonnay3648
    @arnauddonnay3648 4 роки тому

    thank you very much for your video, it feels so good to follow you step by step, keep up the great work man

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 4 роки тому +2

    How can you keep uploading so many videos so fast and in such great quality.
    Have you premade them?
    GJ✌️

  • @pablovirus
    @pablovirus 2 роки тому

    holy cow grid is so much better than bootsrap. Thanks for the detailed explanations!!

  • @habib97se
    @habib97se 3 роки тому

    Thank you so much for this video. I had difficulties to learn grid in the last days but now you solved all my problems :p

  • @ricardohernandezmendez4207
    @ricardohernandezmendez4207 2 роки тому

    🤯. I just learned css-grid. Thanks you!

  • @DerSolinski
    @DerSolinski 4 роки тому

    animation-fill-mode: backwards;
    repeat(3, hit("head", "desk"));
    print("It is so easy -_-, thank you learned something valuable");

  • @imvirpil
    @imvirpil 4 роки тому +77

    1:55 instead of "html" just type "!" and autocomplete.

    • @rand0mtv660
      @rand0mtv660 4 роки тому +1

      Yes! Thanks to Emmet extension that's installed in VS Code out of the box. It can also be used in other editors, it's not tied to VS Code, it was created way before it :D

    • @prshendra
      @prshendra 4 роки тому +1

      It's just a preference.

    • @francescos7001
      @francescos7001 3 роки тому

      you can write “!” or “html” or “doc”. your choice. (I prefer doc because you don’t have that DOCTYPE at the start of file)

    • @henryho952
      @henryho952 3 роки тому

      jonh
      i think he knows it, maybe he wants to use html to avoid confusing

  • @traustitj
    @traustitj 3 роки тому

    Wow. Wish other tutorials were this good

  • @omrividal
    @omrividal 2 роки тому

    Two years later still incredible

  • @Jarrod0067
    @Jarrod0067 2 роки тому

    I feel grid and flex work hand-in-hand. For a website I worked on, I tried to mimic Bootstrap because my employer didn't want to use external dependencies. Recently I was given free reign on another page and I've built it with a flex sidebar-main content duo and a sticky header inside the main, but for the content itself everything is using a 12 wide grid and cards. I can attest that it's much less clutter than bootstrap while having the same outcome

  • @ashrafulhaque8710
    @ashrafulhaque8710 4 роки тому

    I started learning Grid today and you uploaded it!

  • @supremebeme
    @supremebeme 4 роки тому +3

    Thanks from New Zealand

    • @Fireship
      @Fireship  4 роки тому +6

      Thanks, I just had an awesome vacation in NZ last month :)

    • @supremebeme
      @supremebeme 4 роки тому

      @@Fireship oh word!

  • @TH4445
    @TH4445 4 роки тому

    Thank you for the excellent video.......volumes of info ....in minutes......

  • @zummon
    @zummon 3 роки тому

    auto-fit for responsive is the best that I didn't know about. I'm from using CSS framework. All of them even the best out there didn't get what I want like code split for each pages. Now I need to learn pure CSS to get more control

  • @xerxes-ei9gl
    @xerxes-ei9gl 3 роки тому

    grids are a lifesaver

  • @TheJacklwilliams
    @TheJacklwilliams 3 роки тому

    You, kick my ass. Your like "Tech with Tim" on coke. I realized as you were buzzing through this tonight, my solution. I can watch your vid's, consume the mega cool content, but slow the video down by about 50% and then I' can follow. LOL, seriously, you are that teacher, that walks in, smokes through the presentation while the classroom goes numb. I bet you think at this speed too. LOL, kicks my ass everytime. Quality content, delivered FULL FREAKING SPEED WITHOUT ANY PAUSES. lol..... kudos.

    • @josephlivengood4508
      @josephlivengood4508 2 роки тому

      Yes, the only thing I was lost was the html and where he was putting those classes. I couldn't get it to take up the 3 rows but only two regardless of what I put in the css properties, so he lost me there. I'm sure I'll figure it out after a few more videos and playing around with it.

    • @TheJacklwilliams
      @TheJacklwilliams 2 роки тому

      @@josephlivengood4508 Yeah, I think his stuff is more "overview" and geared towards those that are a little ways along in the mission. Aka, you fill in the blanks. It's always good stuff, high quality, it's just delivererd at blistering speed.

  • @itaispector6040
    @itaispector6040 4 роки тому

    Thank you for sharing this, this knowledge is literally gold

  • @anuragw5916
    @anuragw5916 3 роки тому +2

    Jeff!! Intro Music Name pls???
    loved the video btw, using grid from now on.

  • @codersujit5427
    @codersujit5427 3 роки тому

    The best content in time. Loved it

  • @outpost31737
    @outpost31737 2 роки тому

    Two years later and you're a Tailwind fan which is nothing but crazy mark up :)

  • @ManpreetSingh-yo6ew
    @ManpreetSingh-yo6ew 4 роки тому

    Thanks a lot man, you nailed the CSS Grid :)

  • @mrashad_com
    @mrashad_com 2 роки тому

    You save me from wasting hours of my life learning these subjects the hard way

  • @JuanMunoz-th3vn
    @JuanMunoz-th3vn 4 роки тому

    simply perfect !, thanks dude awesome video tutorial as always !

  • @Hobbitstomper
    @Hobbitstomper 4 роки тому +4

    IFLYV (I F'n Love Your Videos). I've rarely ever seen such a high like/dislike ratio on any videos across UA-cam.