Learn Flexbox in 15 Minutes

Поділитися
Вставка
  • Опубліковано 21 вер 2024
  • 🚨 IMPORTANT:
    Learn CSS Today Course: courses.webdevs...
    In this video we will cover everything you need to know about CSS flexbox in only 15 minutes. We will cover what flexbox is, how flexbox works, and the different properties you can use to layout and style your flexbox containers. Flexbox is one of the most important and useful layout properties in all of CSS, and is luckily quite easy to understand once you wrap your head around the terminology. We will be covering all of the terminology, by going through live examples of all the different flexbox properties.
    If there is anything you feel I missed in discussing flexbox, or anything about flexbox that confused you, please let me know in the comments below.
    View CodePen: codepen.io/Web...
    CSS Flexbox Article: blog.webdevsim...
    🌎 Find Me Here:
    My Blog: blog.webdevsim...
    My Courses: courses.webdev...
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/Web...
    CodePen: codepen.io/Web...
    #Flexbox #WebDevelopment #Programming

КОМЕНТАРІ • 849

  • @peepoHappyy
    @peepoHappyy 3 роки тому +927

    Honesty, my biggest problem is understanding flexbox, and you, my friend, literally made one of the simplest tutorials ever. +1 Sub.

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

      how did he center the flexbox container itself on the web page?

    • @Caiser
      @Caiser 3 роки тому +7

      @@adhayyansingh5682 I'm trying to figure that out too, he had multiple css files and didn't show us the contents of all of them

    • @york2301
      @york2301 3 роки тому +3

      @@adhayyansingh5682 justify content: center; + margin: 0 auto; !

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

      @@Caiser justify content: center; + margin: 0 auto; !

    • @bevik12
      @bevik12 3 роки тому +5

      You Sir are not alone. Somehow this flexbox giving me a headache. I really start to understand as it looks the basic and best thing to any responsive webpage. Practice makes perfect! +1 Sub as well.

  • @megoshmego
    @megoshmego 2 роки тому +27

    This man posted this four years ago and is still saving lives today

  • @stratosniper2091
    @stratosniper2091 3 роки тому +185

    Thanks for this. Been coming back to various flexbox videos but I understand it more clear here. I'm putting some timestamps here coz I believe I may go back here from time to time for quick reference
    1:00 Getting Started on flex-container
    2:24 Concept of Main Axis and Cross Axis
    3:20 Why layout styling should be based on Main, Cross Axis not based on horizontal or vertical
    3:30 Laying out elements on Main Axis
    4:30 Laying out elements on Cross Axis
    4:47 Keeping the size of an item / element
    5:15 Last way to align item / element
    5:31 flex-wrap
    5:44 align-content property
    6:59 Column layout
    7:56 Different properties can be applied on flex items
    8:25 Prevent flex item on shrinking size
    8:43 Grow flex items bigger
    11:33 Overriding Cross Axis Alignment
    12:15 Order property
    13:01 Why order property should be avoided
    13:49 Things to remember
    14:19 Shorthand for flex-shrink, grow and basis

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

      Thanks thanks! Very complex for a 15 or so minutes video¡ 💀😅🤝

    • @deryaertekin-wh6es
      @deryaertekin-wh6es Рік тому

      { "employees": { "employee": [ { "id": "1", "firstName": "Tom", "lastName": "Cruise", }, { "id": "2", "firstName": "Maria", "lastName": "Sharapova", }, { "id": "3", "firstName": "James", "lastName": "Bond", } ] } }

    • @deryaertekin-wh6es
      @deryaertekin-wh6es Рік тому

      4543591958840849 Derya Ertekin

    • @deryaertekin-wh6es
      @deryaertekin-wh6es Рік тому

      8

  • @oussamacheta7106
    @oussamacheta7106 5 років тому +556

    that was the best Flexbox tutorial i've watched so far on youtube thanks so much, your channel deserves a lot more subscribers ! keep up the good work

    • @WebDevSimplified
      @WebDevSimplified  5 років тому +38

      Thank you! I love making videos and have so many more ideas.

    • @digigoliath
      @digigoliath 5 років тому +4

      @@WebDevSimplified And I love what you are doing & sharing. Thank you!!

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

      The only thing that could make it better would be to have written material that could be later used as a reference.

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

      @@WebDevSimplifiedi love u

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

      "fux bax"

  • @coeurdelicorne
    @coeurdelicorne 2 роки тому +276

    I'm a university teacher and hope to one day be half as clear and efficient as this masterpiece of pedagogy. Thanks a lot

    • @nxgamervi7772
      @nxgamervi7772 2 роки тому +15

      I learn more from UA-cam than school....

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

      @@nxgamervi7772 🤣🤣

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

      Hey Alex, how r you doing ?

    • @zakeenaqvi2440
      @zakeenaqvi2440 Рік тому +4

      @Alex Fender you have more humility than the vast majority of professors. I wish my previous professors where like you.

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

      If only all professors had the same aspiration.

  • @mikedqin
    @mikedqin 5 років тому +71

    The Best Flexbox Tutorial I've ever seen. Thanks,

  • @danilopriscilla1934
    @danilopriscilla1934 5 років тому +101

    mind blowing explanation!!!
    surely one of the most concise teachers on youtube.
    Believe me...I have not great english skills, but even that, I was able to absorve all the information and knwoledge provided in this video.
    I have learned more with you than all brazillian portuguese speakers that I have seen.
    Congratuations. You have a real gift to teach.
    Greetings from brazil

    • @WebDevSimplified
      @WebDevSimplified  5 років тому +28

      Thank you so much! I am really glad my video and teaching style was able to resonate with you even with the language barrier. That is one thing I always worry about in my videos is that I speak too fast or use too many terms that non-native English speakers may not fully understand.

    • @danilopriscilla1934
      @danilopriscilla1934 5 років тому +11

      ​@@WebDevSimplified As we see, your concern and consequently careness about the language issue is working :)
      God bless you my friend. Thxs for all this effort.

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

    This is THE most perfect Flexbox tutorial. Simple, well-prepared, and compact. Great stuff.

  • @cherubin7th
    @cherubin7th 3 роки тому +78

    I like how you reduced it to the point without becoming too abstract.

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

      I wish I had this ability

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

      I've never realised why I like him the most but I guess he's gave us the clue within the name all these time... 😜

  • @Wesm
    @Wesm 2 роки тому +13

    Man! You're the best one I have ever met at explaining complex programming concepts. And your channel is amazing. No annoying background music. No ignoring some important information because it's easy for you. Thanks Kyle. You really deserve the support.

  • @briansnider7391
    @briansnider7391 3 роки тому +18

    Thanks to your fantastic explanation, after the last few years of heavy flexbox use, I now fully understand flex-basis! THANK YOU!

  • @diegocastaneda4325
    @diegocastaneda4325 Рік тому +6

    I don't always need to update and create CSS daily, but your tutorials are SIMPLY (literally) amazing! Great videos that are straight to the point. Exactly what I need when I'm looking to refresh my CSS knowledge. Thank you!

  • @mehulsrivastava4754
    @mehulsrivastava4754 4 роки тому +8

    He's literally the best teacher anyone could have!!

  • @fata__morgana
    @fata__morgana 5 років тому +152

    Simple, fast and clear. Amazing work dude!

  • @digigoliath
    @digigoliath 5 років тому +13

    WOW, simply the best! Very well illustrated & explained. And the pace is just right. I have never learnt so much in 15 mins and it is coming from a guy who has spent hundreds of hours on tutorials. LOVE IT! Anybody reading this .... spend your time on this. It is super recommended for its fantastic & valuable content. Totally enjoyable. Great job dude!! Keep doing what you are doing. You will change the WORLD!

    • @digigoliath
      @digigoliath 5 років тому +1

      WOW, WoW, he has even shared the source code >> codepen.io/WebDevSimplified/pen/rqNVVb

    • @WebDevSimplified
      @WebDevSimplified  5 років тому +5

      Thank you so much! I am really glad you enjoyed the video and that it was able to help you. I do put a lot of effort into these videos and I am really glad the extra effort has helped you learn.

  • @emelkayaci
    @emelkayaci 8 днів тому

    Thank you! This is the best flexbox tutorial I've seen. Everything is explained step by step and is very clear!

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

    The best flexbox tutorial. Clear, concise and easy to understand.

  • @nandamvyshnavi5075
    @nandamvyshnavi5075 2 місяці тому

    Explaining such a complex topic in an easy and simple terms with less time - AWE !!!
    Great tutorial Sir !!

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

    Wow. Every time I watch your videos, even of things I know, I learn something new. A very useful channel

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

    Dude, you rock!!!! Thank you sooo much for this I’m about 2 weeks in learning HTML5 and wanted a clearer explanation of using the

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

    I still can't believe how good you are at explaining all kind of concepts, i land on your youtube channel 2 days ago and i almost see half part of it. Even if i'm not an english native speaker i understand you perfectly. You speak fast but very clear and you use very simple vocabulary so for me is really perfect. Also the quality of the sound and production helps really a lot. Congratulations man, for me your are really the Javascript boss on youtube. I hope you will open your course soon. Thank you so much.

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

      he already has a Javascript up, I think it's just made it available a few days ago. Good timing!

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

    Hats off to the simplest flexbox tutorial on all of UA-cam. I have seen hours of videos on Flexbox and they kept me confused. This one is a gem.

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

    I've been using this at work for a few years by pasting appropriate examples from blogs and never understanding the principles.
    This is the first time I've bothered to study css flex and I don't know why I put it off for so long!

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

      I used to do the same thing. It is crazy how much you can do with flexbox and how easy it is to learn.

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

    I'm amazed by the clarity of this tutorial.

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

    Once again, excellent job! Finally, I got to understand how it works! Thanks!

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

    Thanks
    This was the best flexbox tutorial on the UA-cam i have seen yet
    Subscribed!!

  • @knightmarerip711
    @knightmarerip711 2 місяці тому

    So many years after and this is still a gem! 💎💎💎

  • @luis.barragan
    @luis.barragan 2 роки тому +1

    This is the best tutorial out there for backend engineers who don't want to be overwhelmed by all the CSS theory behind flexbox, just what is needed to start. Thank you!

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

    Best best Flexbox tutorial I have ever seen in UA-cam ...THANKS and thumbs Up

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

    Simple, fast and to the point. Gem of a tutorial!

  • @MariamAlaa-hg4ii
    @MariamAlaa-hg4ii 5 місяців тому

    This is the first video to ever clearly explain what flex-basis is -speaking for myself at least. I was randomly scrolling and found this tutorial, and I'm so glad I'm finally able to grasp what it is in such simple and clear explanation! Thank you so much.

  • @ardonjr
    @ardonjr 4 роки тому +5

    Why did I just stumble upon this? I needed this way earlier in my life! Vertical alignment with a single line! I could have used that so many times

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

      Hey Don, for such stuff check this for some cool trick on alignment ua-cam.com/video/eHdiIhTPbng/v-deo.html

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

    The best - so many tutorials but none approach the concept of the main and cross axis -- which immediately makes it so simple ! The BEST Flexbox tute out there !

  • @tvo7781
    @tvo7781 5 років тому +3

    You work magic with straight-forward simplicity

  •  3 роки тому

    Oh man. This is the best explanation for flexbox ever.

  • @Amit-jb5xt
    @Amit-jb5xt 4 роки тому +2

    you have explained so much in just 15 mins...thanks...
    where others talk about top programming language for an half an hour just for views

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

    Thank you so much for this video. Flexbox has been a pain for me, but the more educational content I watch, the better I'm understanding it, and you make it really easy. I think Flexbox is one of those things that needs to be practiced constantly in order to really get the potential.

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

    one of the best flexbox video tutorial. You are excellent buddy. 👍👍

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

    I cannot help but agree with Oussama Cheta that this is the best tutorial a beginner like me has seen so far. Fast paced, yes, but we have pause and other modern accouterments at our disposal. I used to train ICT stuff many years ago and you can see who works at his skills for training purposes, and you are it.

  • @fredericoamigo
    @fredericoamigo 3 місяці тому

    Once again: you’re amazing. Love your content. This channel is truly an internet gemstone. Keep up this wonderful work!

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

    The main reason why your videos are the best is that you try to simplify as much as possible, you make sentences shorter without additional unnecessary information(It is basically the key when teaching someone) . You are the coolest and smartest guy i've ever seen!

  • @2684dennis
    @2684dennis Рік тому +1

    Thanks man, you are very clear and very helpfull.

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

    Best tutorial I've found so far, thanks alot!!

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

    bro you are really great.all others were telling me that use this tag,attribute,property in that moment.but you are explaining this things. so that we can make something creative.i really love your videos.thank u so much

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

    Thank you, man. I was going to give up and turn in my code challenge to see how other's finished the challenge, but my mind said let me learn more about flex box before turning in my challenge. I tweaked the settings in my div and was able to get the layout exactly like the design for the code challenge.

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

    This is the best flexbox explanation, short and on point, thank you

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

    OMG You literally solved my alignment issues. I was having such a hard time with CSS because of layouts and positioning. Thank you!!

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

      Hey Cyrus, for such stuff check this for some cool trick on alignment ua-cam.com/video/eHdiIhTPbng/v-deo.html

  • @phransixkaylor
    @phransixkaylor 4 місяці тому

    I still can't believe how simplify this flexbox wahala, to a very easy and simple form. Thank you so much for this. For this kind of tutorial, one needs to pay but you decided to give it up for free. God bless you. You just gained a new subscriber.

  • @skylarw19
    @skylarw19 3 роки тому +5

    Awesome tutorial! Loved that you mentioned screen readers go off of the HTML order, rather than CSS order. I definitely didn't know that and think it's great to know to make sure the things we create are accessible!

  • @matthias4340
    @matthias4340 10 місяців тому

    I watched many tutorials, but this one is the best by far

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

    Best tutorial in the world. I am a professional working in an organization. I used to do html CSS stuff back in the day but nowadays I'm more into logic building and APIs stuff. Just want to learn about flex to improve my css, tried at many blogs but did not get satisfactory answer, When I saw video from web dev simplified there was an instant relief. Thank you so much for best compact content with no bs like others.

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

    What helped for me is putting a border on every element and div and slowly using every attribute on css or this video and seeing how it behaves and what it does

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

    Thank you, the main axis/cross axis explanation really helped me understand it more.

  • @joeldavila6825
    @joeldavila6825 5 років тому +25

    Just subscribed, Dont know why u dont have more subscribers , excellent content and well explained. Thanks for this!

    • @WebDevSimplified
      @WebDevSimplified  5 років тому +4

      Thank you! I am growing pretty quickly in my opinion, but I could always use more subscribers :P

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

    Credit! Credit! Honestly have understood flex-box from this tutorial and I don't think I'll go back to reference from any L. M. THANKS TO YOU!

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

    Came here after going through the Odin Project, and I was so confused reading the explanation on MDN, and your video just made it so clear to me in like 10 minutes, so thank you!

  • @wopmf4345FxFDxdGaa20
    @wopmf4345FxFDxdGaa20 2 місяці тому

    Very good tutorials, straight to the point, very clear, no BS. 😊😊

  • @angel-pu7su
    @angel-pu7su 2 роки тому +1

    Your channel name matches what you do perfectly. Thanks for a truly simplified tutorial.

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

    Wooooo!!! Best explanation ever, after watching a zillion tutorials on the subject I really did think this was super difficult, and you Just made it simple in 15 minutes. Thank you sir! You deserve a million suscribers.

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

    Web Dev Simplified videos are always clutch! He taught me how to write a recursion in one video after I read/watched multiple articles and videos beforehand.

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

    I’m so happy found your channel. You explain all these things so well(Html, Css,Js,React) and that saved a lot of my time.
    It would be nice to see the behavior of flexbox and grid with a small example for a desctop and mobile view.

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

    I love this channel your the only time where what Ive learned in css doesnt go out the other ear.

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

    this channel is incredible - i hope new people continue to find it!

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

    Probably the best Flexbox video i've ever seen. It's the one i keep coming back to time and time again. thank you so much

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

    Watching this before doing Odin's Flexbox section. Great video, super lean quality stuff.

  • @Refraction2319
    @Refraction2319 2 місяці тому

    Understanding this from here was the easiest thing in my life TY WDS

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

    This was easily the simplest and most effective explanation of flex-box ever!!! Web Dev Simplified, you definately holding up to that name

  • @lithiladewnaka1472
    @lithiladewnaka1472 11 днів тому +1

    This helped a lot. Thank you so much

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

    This is the best explanation of Flex-box I’ve seen. Thanks.

  • @ianlewin8888
    @ianlewin8888 8 місяців тому

    Thank you, this clears me a lot of confusion about flex box

  • @kerimtim
    @kerimtim 5 місяців тому

    Thanks Kyle for making flex-shrink, flex-grow and flex-basics easy to understand

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

    Best flexbox tutorial ever. no doubt!

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

    You're the king of making web concepts simple!

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

    Not even a one bad word to say! You are amazing! Thanks very much!

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

    Any web concept you teach becomes so easy to understand. Thanks buddy for the effort.

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

    you voice and pace are so conforting to follow. Thank you so much.

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

    Man! You're the best one I have ever met at explaining complex programming concepts.

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

    thank you so much for this you have made learning flexbox so much easier...

  • @weixintoo5939
    @weixintoo5939 8 місяців тому

    Greetings from Malaysia. Thank you very much for making video explaining about flexbox. I had a hard time understand some of the properties and now I understand it.😊

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

    great job ! thanks for this demo

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

    Excellent tutorial. Easy to understand, not overcomplicated, no stupid jokes, well-spoken. You have a new subscriber Amigo.

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

    Absolute Legend! All your content is extremely well designed and structured and you deliver it very very well!

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

    Thank you. This is by far the best FlexBox tutorial I have seen so far.

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

    Highly recommended the instructor is effecient and very detailed. Thank you

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

    You are the best man ive subbed with notis on cuz of how good this is cant wait for new uploads.

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

    Man ! you are the best Flex-box Instructor .

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

    Honestly, I've struggled with flexbox and this helped a lot

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

    the best explanation about flexbox. thanks. you really helpful.

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

    this topic can't be presented better that this ... Outstanding Work

  • @luisaborba4829
    @luisaborba4829 5 місяців тому

    Wow, amazing video, very easy to understand the concept, thank you!!

  • @T-KiranMP
    @T-KiranMP 2 роки тому

    thanks a lot man. I'm doing a webdev boot camp course in udemy. they didn't cover flexbox or grid. instead they had bootstrap. It was confusing and can't able to understand how bootstrap classes work. after watchng this video it all makes sense now

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

    Dude... Literally the best example for flex box I've come across. Thank you my friend.

  • @عبدالملكهشام-ي6ذ
    @عبدالملكهشام-ي6ذ 2 роки тому

    U make it so easy for me! I really appreciate ur effort.

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

    I was looking for flex-wrap: wrap. I knew I'll found it. Thank you so much. ;)

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

    This is a great reference video. I return to it each time I need a refresher.

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

    Brother, you blew my mind!! The best video I came across!

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

    back end dev jumping into web stuff after years and this video was a godsend (trying to write a responsive navbar without bootstrap)

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

    Thanks for this clear explanation. Greetings from El Salvador.

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

    Excellent video, thanks!!

  • @sarah-zo4wl
    @sarah-zo4wl Рік тому

    i usually don't comment , but i swear this is the best tutorial i have ever watched regarding flexbox