Video není dostupné.
Omlouváme se.

Flexbox vs. CSS Grid - Which is Better?

Sdílet
Vložit
  • čas přidán 28. 01. 2018
  • One of the most commonly asked questions about CSS Grid is “Does CSS Grid replace Flexbox? Is it better than Flexbox? Should I use it instead of Flexbox?” The answer is no - we will use both Grid and Flexbox on most sites, along with flow content, floats, and other CSS for layout. This video explains the differences between Flexbox and Grid, and when to use which one.

Komentáře • 198

  • @dconvention8568
    @dconvention8568 Před 6 lety +143

    It's crazy how your short video easily clarified a few key questions on the use of Flexbox and CSS Grid. As usual, your videos are concise, articulate and insightful. Thanks, Jen!

  • @laviniagheorghiu8154
    @laviniagheorghiu8154 Před 4 lety +7

    The way you are clarifying when to use one thing or another in CSS, makes it much more simpler, thank you , happy to found your channel

  • @Kuwandi
    @Kuwandi Před 6 lety +25

    Wow , possibly the best articulation I’ve been trying to grasp and no one really explained

  • @davidjay2479
    @davidjay2479 Před rokem

    I am so glad I stumbled on this video. Your way of explaining this gave me so much clarity on the subject. I haven't typed a code of grid but I now feel like I know better than everyone else. Thank you.
    Subscribed.

  • @busyrand
    @busyrand Před 6 lety +19

    This cleared up a lot of questions for me. Getting ready to jump back into CSS so this helps out a ton. Thanks. Fantastic explanations.

  • @MMOBlitz
    @MMOBlitz Před 5 lety +6

    You just blew my mind and its amazing to see a content creator that is over the age of 25 covering these topics. I was just laid off from a 12 year job were I did old school front end design which is now UX/UI design I am at a loss as to what to work on. I am not about the UX/UI merged talents, I dont want to do the research, testing, storyboards, and all that, so I am moving back to front end dev. And man oh man am I excited to see the changes that flexbox, grid, and css pre-processors have brought to the world of front end dev since I set out on my initial journey over a decade ago.

  • @Avean
    @Avean Před 5 lety +4

    Really struggled to know when to use Flex vs Grid for a long time but when i started developing a CMS system of my own, flexbox really came to its use when i wanted to have a horizontal navigation with a user panel all the way to the right. With flex that was so easy to do while i used grid for the entire layout of the site.

  • @creayt
    @creayt Před 6 lety +2

    I like how the whole video was smooth and low key and then at the very very end she just drops into random hyperbole. Great vid.

  • @genesisbarrios9334
    @genesisbarrios9334 Před 6 lety +2

    Just found your channel, have only seen this video. Subscribed. You explain things beautifully and have a very soothing voice.

  • @smonkey001
    @smonkey001 Před 6 lety +3

    Wow, love this overview of layout choices! Compact yet full of info/exp!

  • @wepranaga
    @wepranaga Před 6 lety +58

    another great channel about web development

  • @nathaneaves6829
    @nathaneaves6829 Před 6 lety +2

    This is super helpful! Especially the layout difference between Grid and frameworks like Bootstrap...that cleared up a lot of confusion for me!

  • @MaximusWilliams
    @MaximusWilliams Před 6 lety +1

    Great explanation (w/visuals) of when to use CSS Grid and Flexbox. Thank you, Jen :)

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

    This answers my questions about the difference between flexbox and grid. Thank you!

  • @Ihatecandy4ever
    @Ihatecandy4ever Před 6 lety +11

    Jen is the best! So excited for these videos.

  • @benjaminsetor
    @benjaminsetor Před 6 lety +4

    I just can't stop listening to her. i'm watching every single video on this channel

  • @bojansubasic
    @bojansubasic Před 6 lety +1

    Keep up the good work... short and straight to the point.

  • @ElectricSlevin
    @ElectricSlevin Před 3 lety

    as someone who learned CSS 10 years ago this was really helpful and cleared up some of my confusion

  • @akhilsahu_
    @akhilsahu_ Před 2 lety

    This was on point short and pricise and also great explanation. Thanks for making it. 🤩
    My dilemma of what to choose in which situation solved. 👍

  • @LouisYungling
    @LouisYungling Před 5 lety

    Thank you for explaining differences and when/how one might be used or not. I found this very helpful.

  • @tagifts
    @tagifts Před 2 lety

    You actually gave me a piece of info i was looking for. Thanks for saving me a lot of time.

  • @hyvraine11
    @hyvraine11 Před 5 lety

    The first video I've seen that says something about overlapping! I wouldn't have known this if I didn't watch this video, thanks!

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

    Its actually deeply encoded in their names - FlexBox and Grid, really good representation what they do. Great video!

  • @vishwanathchiniwar8869

    Thank you very much for bringing out this video. This cleared me my doubts i had on grid and flexbox. Subscribed and will watch rest of videos.

  • @GraemeWant
    @GraemeWant Před rokem

    Very Clear and easy examples to understand. Pace of presentation was also very good. Thanks. Will now look at more of your Videos.

  • @mohamedhussainsh4861
    @mohamedhussainsh4861 Před 6 lety +3

    Thanks for the video and time u spent on creating this video...short and sweet...

  • @alvaroprietovideos
    @alvaroprietovideos Před 3 lety

    Thank you for sharing this useful information, I kind of knew it, but sometimes until you hear it you don't properly tidy up your mind. For example, I understand perfectly how block and inline works, but looking at your hands in this video, I realised something that I never though of: block and inline are just axes names, and this helped me to understand better other concepts such as the new contain: layout inline-size; Great content!

  • @BrianKiddDevDesign
    @BrianKiddDevDesign Před 3 lety

    You are the Carl Sagan of Web Design and Development. You illuminate often arcane concepts wonderfully. Thanks.

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

    Wow, so simple explanation ! Tks from Brazil !

  • @soyoltoi
    @soyoltoi Před 4 lety

    Such a hidden gem of a channel!

  • @PaulEhigie
    @PaulEhigie Před 6 lety +1

    nice thanks for this, you made it simple to work and know when to use them properly. Thanks again

  • @realmumptastic
    @realmumptastic Před 6 lety +19

    Loving these videos! Thank you Jen!

  • @danjoe6114
    @danjoe6114 Před 4 lety

    hi gen. love ur beautifull condensed video. i went on my phone just to write a coment on ur video. so many points in a 4 minutes vid. excellent. wish will be more like u. all the best. keep it fun.

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

    Wow, so glad I found this channel!!!
    Subbed :D

  • @kieranbarker1902
    @kieranbarker1902 Před 4 lety

    This is a really fantastic video, Jen. As are all the videos from Layout Land! 💯

  • @vanyaliveshere
    @vanyaliveshere Před rokem +1

    Appreciate the explanation, on my way towards getting a career in IT through the Odin Project! Wish me luck

  • @davidramirez9727
    @davidramirez9727 Před rokem +1

    I love this kind of information, thanks for share! ☺️

  • @instantwalrus
    @instantwalrus Před 6 lety +4

    Clear explanation! New subscriber because of this video.

  • @cyex4311
    @cyex4311 Před rokem

    Thank you for the abstract explanation.

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

    This is amazing. Thanks for your explanation!

  • @eXit-ubermensch
    @eXit-ubermensch Před 4 lety

    Informative and concise! Great video! Subscribed.

  • @cloudkungfu
    @cloudkungfu Před 2 lety

    Saw this just as I was struggling to overlay two items with absolute 😅 awesome stuff

  • @flagshipbuilds
    @flagshipbuilds Před 2 lety

    Great video! You answered my question.

  • @NicoMGrad
    @NicoMGrad Před 4 lety

    Super clear! Thanks Jen!

  • @seemsas
    @seemsas Před 6 lety +1

    this explanantion is very good. I will check your other tutorials, too. I just subscribed. Thank you!

  • @yogeshdharya3857
    @yogeshdharya3857 Před rokem

    2-D (Grid) vs 1-D(flexBox) . Sure that's a lot of information for me 4 today . Thank u so much Layout Land for sharing this up !

  • @yuliusseraph4973
    @yuliusseraph4973 Před 2 lety

    Finally a good explanation. Thank you!

  • @csl9495
    @csl9495 Před 3 lety

    Wow.... I really like how you explain things

  • @williamwoodgate
    @williamwoodgate Před 6 lety +3

    Super useful, many thanks!

  • @ibknl1986
    @ibknl1986 Před 4 lety

    Very nicely explained and presented.

  • @DrupalAuthority
    @DrupalAuthority Před 6 lety +1

    Great.... Its so important and useful to understand the basics.....

  • @jshstuff
    @jshstuff Před rokem +3

    I think the 1D vs 2D thing is good, and is probably the simplest explanation. But you can do many 3d layouts in flex, and do many 2d layouts in grid. So I prefer to think of it as:
    - Flexbox is good for laying out content based on the instrinsic size of the items (flex-basis)
    - Grid is good for placing items on a grid with rows and columns of a set size

  • @solr6772
    @solr6772 Před 6 lety

    Very helpful as I just started learning about those two subjects.
    Thanks!

  • @strongangel
    @strongangel Před 5 lety

    Very clear and informative: Thank You.

  • @stevehemmer9668
    @stevehemmer9668 Před 6 lety

    Great video's. You great at teaching and explaining in a simple manner. Thanks!!

  • @TheSoulCrisis
    @TheSoulCrisis Před 2 lety

    Nice clear explanation :)

  • @BogacGuven
    @BogacGuven Před 6 lety +1

    Nicely put, thanks.

  • @MarkusEicher70
    @MarkusEicher70 Před 2 lety

    Thank you Jen. 👍

  • @moamengomaa
    @moamengomaa Před 6 lety +1

    relly i am happy to see yours lessons

  • @sjankins1639
    @sjankins1639 Před 6 lety

    Thank you for the latest features :)

  • @fcmorena246
    @fcmorena246 Před 3 lety

    Thanks for the tutorial, i get the difference.

  • @worldclasscode1847
    @worldclasscode1847 Před 2 lety

    Great vid!

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

    Muito bom. Obrigado por legendar em português.
    Excellent explanation. Like!

  • @rl6382
    @rl6382 Před rokem

    Wow what an interesting video and very highly detailed in which scenarios you’d want each in. Thanks a lot!

  • @marky1756
    @marky1756 Před 2 lety

    You are such a genius ma'am. Ty so much 🧡

  • @gouravsaini6121
    @gouravsaini6121 Před 3 lety

    Best explanation sorted content.

  • @jagrutidadia
    @jagrutidadia Před 6 lety

    Wonderfully explained...thankx.

  • @isoboyedan-obu2323
    @isoboyedan-obu2323 Před 4 lety

    Thank you Jen you have helped me.

  • @maty5152
    @maty5152 Před 2 lety

    Thank you for the insight, senpai.

  • @govinda399
    @govinda399 Před 3 lety

    Great teaching was looking it.

  • @John-qk4mk
    @John-qk4mk Před 3 lety

    finally this makes sense now, thank you!!

  • @ksbalaji1287
    @ksbalaji1287 Před 4 lety

    Clear as crystal! Thanx!!

  • @alexandroskourtis5268
    @alexandroskourtis5268 Před 4 lety

    AMAZING EXPLANATION

  • @GAVIGHUMMAN
    @GAVIGHUMMAN Před 4 lety

    Hey Jen, your explanations are great. are you planning on doing some tutorial series.

  • @AsgardTheFatcel
    @AsgardTheFatcel Před 5 lety

    Great explanation!

  • @mohamedyoussef8835
    @mohamedyoussef8835 Před 2 lety

    Awesome tutorial +++++ thank you 🙂🙂

  • @tyran62
    @tyran62 Před 4 lety

    Best web explanation !!!

  • @ankitkaushal442
    @ankitkaushal442 Před 3 lety

    nicely explained.

  • @eldelotrodia1102
    @eldelotrodia1102 Před 4 lety

    Nice video! ❤️

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

    Huge Fan mam, Pure knowledge keep it up.

  • @msvmanikantasrivishnu7788

    Thanks madam your 2018 video helps me in 2020. :-)

  • @MossawirAhmed
    @MossawirAhmed Před 6 lety

    Thats what really what i wanted to know. Thanks. I need to experiment more because i get so many different type of psds and using grid and using basic css mixed might be good. I dont know if they work togather on IE. I hope i dont have to use shive or some html5 css3 compatibility js.

  • @bendayhoe
    @bendayhoe Před 5 lety

    Diagrams are soooo helpful!

  • @nelsonjimenez7939
    @nelsonjimenez7939 Před 5 lety

    You are very articulate. I love that.

  • @shiuandai0426
    @shiuandai0426 Před rokem

    thank you for your brief inro

  • @diwakarsingh9558
    @diwakarsingh9558 Před 5 lety

    fantastic explanation :)

  • @PcHabitat
    @PcHabitat Před 6 lety +1

    Amazing video, thank you for crushing my concerns over whether to still use convention CSS and CSS Grids.

  • @a4yster
    @a4yster Před 4 lety

    OH God! Thank you, finally Ive found an answer! SUbscribed!

  • @Seu-Ze
    @Seu-Ze Před 2 lety

    muito boa aula. Thank you very much

  • @hralibras
    @hralibras Před 6 lety

    thank u very much......everything very clear...!!!

  • @alpham8754
    @alpham8754 Před 6 lety

    Thank you very much for that awesome lecture video.
    I have one question / suggestion and one point that I don't aggree with it:
    1. The question:
    I would compare CSS Grid with C# .NET WPF GUI applications and / or with the Java SE GridBagContainer Layout. We know this things for many years in classical PC programming languages as mentioned right in the sentence before. I loved those methods on layouting and I love to see it now as well in the web. That really simplifies things. I hope, we can integrate old browsers using Transpilers or PostCSS. My question is: Do you know if the CSS Grid is 1 to 1 compareable with the .NET WPF and Java SE GridBagContainer?
    2. The point that I disagreee (because I did it already successfully):
    Indeed you are able to let overlap images using flexbox. Let's say you want to have a small image and a large on in the background. That works simply by using z-index and by using some flex properties on the CSS selectors. Another point to think about it: Is overlapping images, that next to each other not simply done by negative margins or paddings?

  • @ismailsaleh7688
    @ismailsaleh7688 Před 5 lety

    Thank you so much!

  • @peterwoods35
    @peterwoods35 Před 5 lety

    CSS for dummies. Thank you!

  • @codeAlongwith
    @codeAlongwith Před 3 lety

    This was so helpful. Now I wont try to build a whole css grid website lol

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

    Ótimo vídeo. Obrigado pela legenda em português brasileiro.

  • @alejandrosobko
    @alejandrosobko Před 6 lety +1

    Thanks!

  • @karunakarpatel194
    @karunakarpatel194 Před 6 lety

    Great video i really loved it. keep uploading..:-)) Subscribed with the Notifications on..!!!!

  • @jlouzado
    @jlouzado Před 4 lety

    Got some pushback on a grid layout the other day that it's less performant than flex because it takes multiple passes to calculate everything. At what component scale is that a consideration to just _not_ use grid at all?

  • @eduar2tc904
    @eduar2tc904 Před 5 lety

    Que buen canal. Se agradece los subtítulos al Español.

  • @5dp5
    @5dp5 Před 2 lety

    Thank you very much for the video. I liked that the video is translated in Arabic. I hope all the videos are translated into Arabic.