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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • Build 3 responsive CSS grid examples to master the basics of this powerful layout system. github.com/fireship-io/224-an...
    Full Tutorial: fireship.io/lessons/three-res...
    1. Responsive 12-column bootstrap replacement.
    2. Mosaic photo gallery.
    3. Staggered animation grid.
    Featuring special guest Bob Ross.
    #css #grid #tutorial
    Install the quiz app 🤓
    iOS itunes.apple.com/us/app/fires...
    Android play.google.com/store/apps/de...
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
    My VS Code Theme
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 374

  • @toxaq
    @toxaq 4 ปีที่แล้ว +481

    Your content is unmatched in quality, timeliness and usefulness.

    • @jackrdye
      @jackrdye 3 ปีที่แล้ว +3

      Couldn't agree more

    • @durandekamga2298
      @durandekamga2298 2 ปีที่แล้ว +2

      Still the GOAT :)

  • @jamesbest3347
    @jamesbest3347 4 ปีที่แล้ว +614

    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 ปีที่แล้ว

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

  • @AlexDBaxter
    @AlexDBaxter 3 ปีที่แล้ว +81

    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 ปีที่แล้ว +165

    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

  •  4 ปีที่แล้ว +12

    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!

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

  • @igorskyflyer
    @igorskyflyer 4 ปีที่แล้ว +60

    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. 🥳😄

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

  • @KedarKanekar
    @KedarKanekar 10 หลายเดือนก่อน +1

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

  • @ThiagoVieira91
    @ThiagoVieira91 4 ปีที่แล้ว +2

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

  • @duckmasterflex
    @duckmasterflex 4 ปีที่แล้ว

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

  • @MaamarYacineMEDDAH
    @MaamarYacineMEDDAH 4 ปีที่แล้ว

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

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

  • @stevieholland3579
    @stevieholland3579 ปีที่แล้ว

    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.

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

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

  • @digigoliath
    @digigoliath 4 ปีที่แล้ว +6

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

  • @arjunyelamanchili3517
    @arjunyelamanchili3517 4 ปีที่แล้ว +29

    The card entry animation is beautiful 😍

  • @abeechr
    @abeechr 4 ปีที่แล้ว +1

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

  • @fabianw.7896
    @fabianw.7896 2 ปีที่แล้ว

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

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

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

  • @aijiexi
    @aijiexi 2 ปีที่แล้ว

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

  • @alihaydargubatov2790
    @alihaydargubatov2790 3 ปีที่แล้ว +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 2 ปีที่แล้ว

      Ï don't understand your letter Ī

  • @Riko2909
    @Riko2909 4 ปีที่แล้ว

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

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

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

  • @johanledel1407
    @johanledel1407 4 ปีที่แล้ว +1

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

  • @shadowpenteado
    @shadowpenteado 3 ปีที่แล้ว +1

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

  • @iftruth
    @iftruth 4 ปีที่แล้ว +43

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

  • @akhillshetty2140
    @akhillshetty2140 4 ปีที่แล้ว +10

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

  • @MrAlexVelik
    @MrAlexVelik ปีที่แล้ว

    That is exactly what I was looking for! ily man

  • @edberaga
    @edberaga 2 ปีที่แล้ว

    This is the best grid lesson ever!

  • @hillycrypto3416
    @hillycrypto3416 ปีที่แล้ว

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

  • @JerWodke2012
    @JerWodke2012 2 ปีที่แล้ว

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

  • @12PnT12
    @12PnT12 2 ปีที่แล้ว

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

  • @gouravkumar772
    @gouravkumar772 2 ปีที่แล้ว

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

  • @HardHitMag
    @HardHitMag 5 หลายเดือนก่อน

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

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

  • @ashrafulhaque8710
    @ashrafulhaque8710 4 ปีที่แล้ว

    I started learning Grid today and you uploaded it!

  • @meetbardoliya6645
    @meetbardoliya6645 2 ปีที่แล้ว

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

  • @jaydenmoon1165
    @jaydenmoon1165 2 ปีที่แล้ว +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!!!

  • @rupertxyz
    @rupertxyz 3 ปีที่แล้ว

    Really awesome content! Love the fact that it’s concise and to the point.

  • @itaispector6040
    @itaispector6040 3 ปีที่แล้ว

    Thank you for sharing this, this knowledge is literally gold

  • @randomly_random_0
    @randomly_random_0 2 ปีที่แล้ว

    this is what im looking for

  • @codersujit5427
    @codersujit5427 3 ปีที่แล้ว

    The best content in time. Loved it

  • @JuanMunoz-th3vn
    @JuanMunoz-th3vn 4 ปีที่แล้ว

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

  • @michelribbens8014
    @michelribbens8014 4 ปีที่แล้ว

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

  • @Neetigya
    @Neetigya 4 ปีที่แล้ว

    Thank you for this amazing demo!

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

  • @SmitaLinas
    @SmitaLinas 4 ปีที่แล้ว

    Just wonderful!! Love it!

  • @DarkPa1adin
    @DarkPa1adin 3 ปีที่แล้ว

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

  • @inflame1994
    @inflame1994 4 ปีที่แล้ว

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

  • @ricardohernandezmendez4207
    @ricardohernandezmendez4207 ปีที่แล้ว

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

  • @Fubbel42
    @Fubbel42 3 ปีที่แล้ว

    Wow, that's really impressive!

  • @roecarol
    @roecarol 2 ปีที่แล้ว

    Amazing! Thank you.

  • @Migueligr2000
    @Migueligr2000 4 ปีที่แล้ว

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

  • @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)

  • @sakarsr
    @sakarsr 4 ปีที่แล้ว

    Thank you for this great video on CSS Grid.

  • @traustitj
    @traustitj 2 ปีที่แล้ว

    Wow. Wish other tutorials were this good

  • @suvraneelsaha7857
    @suvraneelsaha7857 9 หลายเดือนก่อน

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

  • @xerxes-ei9gl
    @xerxes-ei9gl 3 ปีที่แล้ว

    grids are a lifesaver

  • @iqwebserve3973
    @iqwebserve3973 ปีที่แล้ว +1

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

  • @code-maestro
    @code-maestro 3 ปีที่แล้ว

    THE BEST GRID LAYOUT VIDEO THERE IS

  • @akashrajum3319
    @akashrajum3319 4 ปีที่แล้ว

    Amazing content as always, thank you.

  • @AshishDha
    @AshishDha ปีที่แล้ว

    this is soooo good. thanks!!! hope to use this on my database website soon! :)

  • @k3tna
    @k3tna 4 ปีที่แล้ว

    Incredible, man, thank you.

  • @kaustabhchakraborty4721
    @kaustabhchakraborty4721 10 หลายเดือนก่อน

    These videos r the best for recap.

  • @NoahThul
    @NoahThul 4 ปีที่แล้ว

    solid presentation! Thank you!

  • @shreerangvaidya9264
    @shreerangvaidya9264 4 ปีที่แล้ว

    Great video! Your channel deserves more than this.

  • @mfrdbigolin
    @mfrdbigolin 3 ปีที่แล้ว +1

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

  • @youranonymousyoutuber4051
    @youranonymousyoutuber4051 4 ปีที่แล้ว +1

    dude your course is golden

  • @sanchitbajaj6961
    @sanchitbajaj6961 4 ปีที่แล้ว

    Always the best! 🌟

  • @Sunwarul
    @Sunwarul 4 ปีที่แล้ว

    Best tutorial so far. Thank you so much. Make more and more videos, please.

  • @ManpreetSingh-yo6ew
    @ManpreetSingh-yo6ew 4 ปีที่แล้ว

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

  • @strahinja1107
    @strahinja1107 4 ปีที่แล้ว

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

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

  • @atmanvisual190
    @atmanvisual190 3 ปีที่แล้ว

    This is so inspiring. Thank you.

  • @rachitsharma7921
    @rachitsharma7921 4 ปีที่แล้ว

    Absolutely loved it

  • @rankarat
    @rankarat 3 ปีที่แล้ว

    Very well done! Tnx.

  • @FriedrichBoettger
    @FriedrichBoettger 3 ปีที่แล้ว +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.

    • @altdelette
      @altdelette 10 หลายเดือนก่อน

      hear hear!!!

  • @coachedbychristian7775
    @coachedbychristian7775 3 ปีที่แล้ว

    Really useful video thanks!

  • @Potatis1337
    @Potatis1337 4 ปีที่แล้ว

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

  • @omrividal
    @omrividal ปีที่แล้ว

    Two years later still incredible

  • @resurrexi
    @resurrexi 4 ปีที่แล้ว

    Detailed and succinct

  • @BigIronAlba
    @BigIronAlba 4 ปีที่แล้ว

    Very informative 10/10
    cant wait to design some dashboards with grids

  • @TH4445
    @TH4445 4 ปีที่แล้ว

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

  • @saurabh75prakash
    @saurabh75prakash 2 ปีที่แล้ว

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

  • @auguststas7770
    @auguststas7770 2 ปีที่แล้ว

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

  • @yt-sh
    @yt-sh 4 ปีที่แล้ว +5

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

  • @shiro3940
    @shiro3940 ปีที่แล้ว

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

  • @rebelion1
    @rebelion1 2 ปีที่แล้ว

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

  • @DavidElstob73
    @DavidElstob73 4 ปีที่แล้ว

    Amazingly good explanation. Thanks :)

  • @dennisbarzanoff9025
    @dennisbarzanoff9025 4 ปีที่แล้ว +2

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

  • @mahin_panchal
    @mahin_panchal 2 ปีที่แล้ว

    This is literally an underrated channel!

  • @zenahrb8316
    @zenahrb8316 4 ปีที่แล้ว

    This is gold

  • @ARS-fi5dp
    @ARS-fi5dp 2 ปีที่แล้ว

    Thank you man a lottttt❤

  • @aSTr0NeRF0999
    @aSTr0NeRF0999 2 ปีที่แล้ว

    Amazing very helpful content ad always 👏 thanks a lot ! 🙏

  • @Omerko
    @Omerko 4 ปีที่แล้ว

    Thanks a lot for this, just great.. Thanks!

  • @phil5689
    @phil5689 2 ปีที่แล้ว

    Thank you, thank you very much.