Flexbox CSS In 20 Minutes

Sdílet
Vložit
  • čas přidán 6. 06. 2024
  • This video is 5 years old. Check out the 2022 crash course - • Flexbox Crash Course 2024
    In this quick video we will go over the CSS Flexbox model. This is a quick overview, not an in-depth course. We will look at the basics such as
    Code - jsfiddle.net/bradtraversy/bu0...
    display:flex
    flex
    order
    flex-direction
    justify-content
    flex-basis
    align-items
  • Věda a technologie

Komentáře • 1K

  • @TraversyMedia
    @TraversyMedia  Před 2 lety +37

    New 2022 Flexbox Crash Course - czcams.com/video/3YW65K6LcIA/video.html

  • @computerhoofd
    @computerhoofd Před 3 lety +733

    Narrators in a lot of other videos sound too enthusiastic for my taste. That's why I love the way this guy explains things. He sounds so bored, and I love it. So soothing.

    • @sebastianbriones5413
      @sebastianbriones5413 Před 3 lety +67

      He's got a life aside from coding, he doesn't live with cats like some other devs.

    • @Jester2b04
      @Jester2b04 Před 3 lety +49

      Yea I agree. I like the matter-of-fact way of talking from him, because he sounds like he's done it for so long and seen so much that he sounds chill, calm, and collected; something you get from years of experience.

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

      You’re right i love it

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

      I feel like I'm back in school

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

      I can't realize it before. There's more space for me to listen to what he said, not his emotion

  • @SK0R092
    @SK0R092 Před 4 lety +277

    20 minutes ago I couldn't get my head around flex boxes at all and now I feel like I proper understand them.
    Absolutely brilliant video
    Flex boxes are actually incredible. will look forward to using them

  • @ga7853
    @ga7853 Před 6 lety +35

    Your video is the best on the net for flexbox, thanks a million for all the time you spent to make this simple and clear and many thanks for code.

  • @CustomizeDroid
    @CustomizeDroid Před 2 lety +7

    Best tutorial have ever watched been finding it a bit hard to wrap my head around flexbox and grid model but with this course everything seems so much easier thanks Brad for this insightful video

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

    This was recorded 4years ago and it still helped solve all my problems with flex box. You’re awesome T 💪

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

    Really like the way you explain, Brad! Giving details in an understandable manner showing both the code and the result, but also not dragging on for too long repeating obvious things.
    Thank you!

  • @chrismayes9816
    @chrismayes9816 Před 5 lety +7

    Super helpful! Thank you very much for this video.
    Small point if anyone else gets confused at 5:20: author says both align-content and align-items are for the cross axis. I think this is right for items, but content is for the main axis!

  • @aseemlalfakawma5084
    @aseemlalfakawma5084 Před 7 lety +16

    Really informative, can't believe how easy it is to make column layouts now.

  • @hirbodkhatami9906
    @hirbodkhatami9906 Před 3 lety +175

    TIP: align-items is for laying items along cross axis and justify-content is for laying items along main axis.

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

    This made more sense than any other tutorial I've watched on flexbox. You really are an amazing instructor Brad.

  • @yupkeetoki
    @yupkeetoki Před rokem +2

    I really like the way you explain each flex property. In other videos, they just go through things so quickly that I find myself lost most of the time. Thanks for showing examples of how each of the properties function!

  • @livetolearnandlearntosucce2861

    Hi Traversy Media you are the only man i like in explaining things in css, java, html, etc. I have been learning for about six month. But with your video and tutorials i get lots of improvement because you are practical. This is why i love you the most. When others explain i have not much improvement cause i dont know why, they are so advance or just not practical like you. You channel help me lots. Thanks to you and GOD BLESS YOU.

  • @mda4455
    @mda4455 Před 7 lety +127

    Good tutorials as always, Thanks Brad.

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

    Thanks again - Another great tutorial - I typed out the code with explaining comments as I watched. That's the only way I can thoroughly absorb and understand it. 3 weeks ago I knew nothing about html or css - after your short tutorials I am creating a professional website for our Knights of Columbus Council - THANK YOU!

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

    Been following up on some of your courses lately and... I hardly leave comments but, I've got to say "YOU TEACH SUPER WELL" thanks for the support man! Really enjoy taking your courses

  • @00el04
    @00el04 Před 3 lety +24

    i always go back to this video for a refresher :)

  • @spaghetticode3107
    @spaghetticode3107 Před 5 lety +38

    "Thay may be very well be the only thing you want to do, and that's fine."
    Iove that one line so much

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

    This was extremely helpful. I think it was one of the better videos I've seen on the subject. Really appreciate you taking the time to make this video.

  • @KalinaVel0505
    @KalinaVel0505 Před rokem

    You have a talent for explaining things. Love the organized way you explain everything! Rarely have I watched a tutorial with such quality.

  • @sumanbanerjee4756
    @sumanbanerjee4756 Před 7 lety +3

    Wow flex is such an easy solution to complex CSSing! Thanks for creating this awesome tutorial :)

  • @bikkikumarsha
    @bikkikumarsha Před 4 lety +2102

    With 2x speed learn Flexbox in 10 minutes

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

    I just want to say that I have seen so many tutorials on flexbox but never fully understood it until I saw your video! Much love from Sweden! Keep up the good work :)

  • @Free_Bird78
    @Free_Bird78 Před 2 lety

    this is what a learner wants --> no unnecessary excitements and no 'try hard' to make audience watch the video giving heavy expectations. Excellent work😀

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

    Thanks Brad. Your tutorials look easy compared to others. It's just hard to remember all of it, especially when you just start learning alongside JS

  • @jigsaw009
    @jigsaw009 Před 7 lety +3

    Hi Brad, it is really a top-notch tutorial. In the meantime, I really love to learn universal rendering using React and Node. Wish you could produce this kinda course in the near future. You are indeed an excellent instructor on CZcams :)

  • @matthewr6940
    @matthewr6940 Před 3 lety

    Thank you. Creating these videos and taking the time to help has made a tremendous impact on my developing career.

  • @josephgarza5973
    @josephgarza5973 Před rokem +1

    Thank you for the quick crash course video. I thought it was rather helpful to be honest and I appreciate you taking your time to make it. Well done, Sir!

  • @mikacar8905
    @mikacar8905 Před 7 lety +3

    Bravo. Easy and clear tutorial. Just what I need.

  • @sxp2high
    @sxp2high Před 5 lety +35

    I've waited 17 years for this.

  • @harshilgarg846
    @harshilgarg846 Před 3 lety +1

    Thank you sooooooooooooooooo much for this tutorial. I've been struggling for FlexBox for a long time, and then I finally took some time to search up some basic tutorials, and your video cleared up so much for me.

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

    I find flexbos so incredibly confusing by other instructors. Thanks once again Brad for making this straightforward and easy to understand!

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

    I should have watch this before i start my work today. I have been scratching my head today to get everything align. Anyway, great tutorial!

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

    When you know how difficult it is to fine a good tutorial then you must like this guy .

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

    Thank you for doing what you do. Your one of the best instructors of web technologies amongst many, you've been a great help I must say.

  • @glimpseoflifebd
    @glimpseoflifebd Před 3 lety +1

    Very helpful specially for those who wanna start css and getting too many problems while trying to give a perfect position of elements.
    Thanks Brad.

  • @selfsage1
    @selfsage1 Před 7 lety +7

    thank you for the tutorial..

  • @andylib
    @andylib Před 5 lety +158

    17:35 - wasn't expecting that 😂

    • @lyesbeyoud
      @lyesbeyoud Před 4 lety +31

      i have a f*** what is it six boxes ........ he meant to say five 😂

    • @zippytyro
      @zippytyro Před 4 lety +10

      Your ears passed the test.

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

      language!

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

      Yeah. Laughing too. You're like serious and explaining flexbox to lammers and then you're just "fuck..what is it?" hhahaha

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

      i actually went back when i heard this and was like.. uhh did he just say fuck? lol

  • @kolyxix
    @kolyxix Před 5 lety

    I am going though my free-code camp project (web design), and I just came across your video at the right time. This is extremely helpful.

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

    Thanks for uploading this, been looking for a clear explanation on Flexbox, your videos are so dope.

  • @christyguy59
    @christyguy59 Před 6 lety +6

    Thank you, man! I think I'll soon owe my career to you.

  • @user-cr9kv4dl6j
    @user-cr9kv4dl6j Před 6 lety +7

    Thank you sp much! Its very simple but i hought it was harder
    :)

  • @TheUofastudent
    @TheUofastudent Před 4 lety

    Man I don’t think I can ever pay you back for all the help you have give... I am truly great full ... thank you !!!!

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

    Hey Brad, you have a gift with explaining content. Keep up the great work!

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

    Thank you so much! This really helped me to visualize how flex box works. The text book I'm using to learn web dev had us apply flex box as one of the last steps in creating a website. It seems like it would be much easier to apply flex box at the beginning and add in the content of the website after all the boxes are properly arranged. Should flex box be applied at the beginning or end of a project?

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

    Really really helpful video.. thanks ... your new subscriber from pakistan :)

  • @Eltopshottah
    @Eltopshottah Před 2 lety

    I just wanted to say thank you, all though things are still challenging it’s starting to get better. I really really appreciate you and your channel serious inspiration

  • @ernest1520
    @ernest1520 Před 6 lety

    Your videos are awesome. I was mainly back-end guy and following your tutorials helped me a lot in learning front-end.

  • @CodingPhase
    @CodingPhase Před 6 lety +30

    thank u need it this

    • @michaelarcher2496
      @michaelarcher2496 Před 6 lety +8

      Lol u have a channel teaching people but didn't know how to do this 9 months ago, priceless

    • @FirstLast-rm7mb
      @FirstLast-rm7mb Před 5 lety +7

      @CodingPhake, You need to learn english.

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

      Oh I guess everyone should have everything they learn memorized. If not then you must be a fake developer. Or is this just a really nice, quick tutorial for anyone to refresh upon? Get off his nuts

  • @kodesign9823
    @kodesign9823 Před 5 lety +12

    Sweet tutorial man! Cleared up a lot of shit for me. My teacher was outdated apparently.

  • @eriseasyeats5473
    @eriseasyeats5473 Před rokem

    Thank you so much for this video. I was struggling to understand the concepts just from reading them, so seeing this in real-time has been a huge help.

  • @seemakanwal2607
    @seemakanwal2607 Před 3 lety

    You demonstrated it nicely with little examples first and then added it in the main code. I understood it without a problem. Thanks.

  • @user-vi3ds1pf1o
    @user-vi3ds1pf1o Před 7 lety +3

    very useful thanks

  • @adamtak3128
    @adamtak3128 Před 7 lety +653

    Nice! I'd like to make a request if it's not too much to ask. Could you do a tutorial on creating a website for a fictional client? I would love to see what the process is like. Frontend, and Backend with node.js?

    • @JamesQQuick
      @JamesQQuick Před 6 lety +60

      That's a great idea. Would love to see that as well!

    • @moca3417
      @moca3417 Před 6 lety +21

      Would be very nice...although it would be a lot of work I guess. Anyways cool that he shares his knowledge ;)

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

      good idea

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

      Thats what I would really love too see!!!

    • @dereckportela1298
      @dereckportela1298 Před 6 lety

      Up

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

    Awesome stuff.I'd earlier on gone through w3 schools content and this is just Top notch application of what I learnt.Thank you Brad

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

    Wow. The way you explain the tutorial is amazing. I'm watching like 8 videos from you and I'm learning so much more than my clases. Hope to get more videos for fullstack. Greetings from Perú.

  • @Methgaard
    @Methgaard Před 7 lety +19

    Great tutorial, I'm convinced to leave Bootstrap behind and use Flexbox!

    • @SVJY15
      @SVJY15 Před 6 lety

      LOL good idea !!

    • @jefjef418
      @jefjef418 Před 5 lety

      now bootstrap 4 uses flexbox, there is no scape.

    • @codethebeast975
      @codethebeast975 Před 5 lety

      You will definitely kick off the bootstrap from your computer if you ever watch one video on css grid this thing is savage man.

    • @Codificando
      @Codificando Před 5 lety

      If you just use the bootstrap Grid System it's better. But, in my case for example, I like the way bootstrap 4 looks, so I use it in my web systems.

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

    Just commenting so the algorithm shows this video first

  • @ilayali_
    @ilayali_ Před 2 lety

    You are the best teacher for this!! I've been racking my brain to figure this out and then I found your channel! Thank you so much!!!

  • @josema-boy7610
    @josema-boy7610 Před 5 lety +2

    Simple, quick, and effective. Thank you very much for the info. Now time to practice it. Cheers mate!

  • @jeremy_s
    @jeremy_s Před 7 lety +87

    Wow. Why I have not used this before...

    • @serpent465
      @serpent465 Před 7 lety +3

      exactly my thoughts!

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

      CSS grid is amazing it can do more than flex

    • @goodester6924
      @goodester6924 Před 5 lety

      @Calin Belut that is why browser prefix is a thing

    • @graczmisiek4131
      @graczmisiek4131 Před 5 lety

      @@goodester6924 was not enough for IE back in the day. It was easier to use "good" old floats which were at least "consistent"

    • @namisanws2340
      @namisanws2340 Před 4 lety

      Flexbox is god

  • @mohitdas5292
    @mohitdas5292 Před 5 lety +12

    Best video on flexbox...😎

  • @vidicanrazvan7398
    @vidicanrazvan7398 Před 3 lety +1

    Amazing explanation. I am doing a course in parallel...had to resort to this video...splendid explanation. Thank you for the value provided.

  • @ayushjoshi2367
    @ayushjoshi2367 Před 3 lety

    A very helpful tutorial on Flexbox. Got to know a lot from you. Thanks a lot for creating such a short and 'to-the-point' tut.

  • @PezhvakIMV
    @PezhvakIMV Před 7 lety +16

    flex-basis is not a more flexy way of using width property, it's different. if you use width property and browser size goes less than that, a horizontal scroll bar will be shown on the other hand if you use flex-basis, that flex-item will resize (shrink) in favor of browser width

    • @digbick9769
      @digbick9769 Před 6 lety

      You sure? I thought that when you use width on flex-items, they can also shrink.

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

    Tuesday 21st April 2020
    Learning Class: Flexbox CSS In 20 Minutes
    Thank you Brad Traversy.

  • @elrubio8091
    @elrubio8091 Před 4 lety

    Wow!!! just got to understand the Flexbox better and in more depth than i had learn before in another website. thanks

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

    Another great overview. Thx for taking the time to share it.

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

    Mind blown... How have we bee developing sites and apps without flexbox?

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

    1:26 "it can be kind of pain in the ass" :D

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

      actually bets sentence in the whole video :D

    • @SharatS
      @SharatS Před 4 lety

      *D E M O N E T I Z E D*

  • @imanqoly
    @imanqoly Před 3 lety

    I'm 3 years follower of your great videos... Thanks

  • @sourandbitter3062
    @sourandbitter3062 Před 6 lety

    I struggled for an hour on a simple navbar and got the idea to make it using flexbox. That was childs play. Thanks for the great explanation.

  • @nevinkuser9892
    @nevinkuser9892 Před 3 lety +22

    "Alright, so what the hell is flexbox?" 😂😂😂

    • @srinicnu5283
      @srinicnu5283 Před 3 lety +1

      didn't you see the video man!!

    • @subhamagarwal1665
      @subhamagarwal1665 Před 3 lety

      @@srinicnu5283 dude @nevin kuser was just quoting what he said at 0:46

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

    17:36 Who else heard what I heard?

    • @v3r0nica101
      @v3r0nica101 Před 5 lety

      "5, what is it? 6 boxes in here..?"

  • @rebelmachine88
    @rebelmachine88 Před 5 lety

    I needed to come back to this and I'm so glad it's here ha, thanks Brad!

  • @MayankTiwari24
    @MayankTiwari24 Před 4 lety

    Awesome tutorial, I have been using flex indirectly with bootstrap and oxygen but now i finally understand it for what it is. Thanks a lot.

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

    “Alright so what the hell is flexbox?” 🤣

  • @muhammadablugg3723
    @muhammadablugg3723 Před 5 lety +17

    but can it *W O R K U N D E R W A T E R ?*

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

      I just sawed this container into half and fixed with FLEX TAP- BOX!

    • @aegisgfx
      @aegisgfx Před 5 lety

      And can it run Crysis??

    • @bpdobson8660
      @bpdobson8660 Před 5 lety

      Only on Fridays

  • @thatmarinescienceguy
    @thatmarinescienceguy Před rokem

    This truly is a useful tutorial. So many youtube videos A) do not explain and B) they just show you how to build 'this exact' website.. etc... Traversy Media explains and teaches, that's cool! {Thank you!} I'll be watching more of your videos for sure, like the one you pinned below - the '22 Crash Course. Thank you again!

  • @baldmike
    @baldmike Před 7 lety +1

    Absolutely perfect Flexbox tutorial, thank you.

  • @exeedit9105
    @exeedit9105 Před 5 lety +7

    *Hey i just created a professional website with wix*

  • @humblebumblebee5017
    @humblebumblebee5017 Před 3 lety

    Thank you! Flexbox is a game changer and a big concept to wrap your head around, this really helped me.

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

    Thank you for uploading this video. Awesome job!!

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

    excellent course...been stuck with flex boxes but now I'm starting to get the hang of it.

  • @simonkalu
    @simonkalu Před 7 lety

    Very easy and clear to grasp. Thanks Traversy Media for this one.

  • @chethankambi31
    @chethankambi31 Před 4 lety

    Probably one of those rare guys who says... "go ahead and dislike if you did not like the video". Brad you so genuine and we love it!!! Keep doing what you do and please continue your good work :)

  • @zetagundam20x
    @zetagundam20x Před 3 lety

    You and Net Ninja are my favorite Web Dev channels...keep fighting the good fight Brad! Awesome tutorial!!

  • @jeremybrews2521
    @jeremybrews2521 Před 7 lety +1

    Great tutorial, loved it. Keep it up Brad.

  • @JimmysJunk
    @JimmysJunk Před 2 lety

    Excellent use of 20 minutes of my time! Thank you!

  • @romko-romario
    @romko-romario Před 3 lety

    The best tutorial on flexbox I've ever seen! Also, there's another great video about grid on this channel.

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

    your channel and your videos are awesome. Now I am learning how css works.
    I am planning on my front end dev according to your videos

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

    Awesome video as always! Now I am starting to get the hang of the flexbox basics. Thanks for sharing your knowledge with us =)

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

    Thank you made it finally click after two weeks of staring at css tricks flexbox and playing flexbox froggy and tons of notes. Just had my breakthrough @7:25 into your video. Im sorry had to tell somebody thanks again !God Bless u!! Love ya

  • @liamc545
    @liamc545 Před 2 lety

    Find myself having to use a variety of different explanation sources to get my head around new concepts as I learn, this has solved my issues with Flexbox, thanks

  • @BlakeT87
    @BlakeT87 Před 2 lety

    Thank you for the tutorial. I’m new to programming and still learning the basics of CSS. This is really helpful!

  • @kingmikeofthenorth
    @kingmikeofthenorth Před 3 lety

    Thanks for the primer, Brad. Flexbox rocks!

  • @eminm6383
    @eminm6383 Před 5 lety

    Perfect explanation for beginners. Please keep going teaching stuff like that for beginners.

  • @mjay417
    @mjay417 Před 4 lety

    great video as always. just with your first 2 beginners tutorials people thought my websites were REAL websites. Feels great.

  • @fakhruddinmasalawala9525

    ty mate.
    your tutorials makes learning code much easier.

  • @camnooten110
    @camnooten110 Před 4 lety

    Thank you! I spent hours trying to get it just right and then I watched your video and knew what to do.