Do you understand how Flexbox does what it does?

Sdílet
Vložit
  • čas přidán 31. 05. 2024
  • flexboxsimplified.com

Komentáře • 373

  • @DesignCourse
    @DesignCourse Před 3 lety +538

    I always thought it just does what it does because it be what it do. 🥃

  • @JaredNichols909
    @JaredNichols909 Před 3 lety +253

    I love how you explain **why** things behave / function the way they do. A lot of instructors just tell you a few things to do or try and then you run into problems in the real world, like you mentioned. I like that you care about your audience enough to give comprehensive instruction and explanation of why something is the way it is. You’re a teacher that makes it easy to follow along. Good job!

  • @vibonacci
    @vibonacci Před 3 lety +34

    "The nice thing about flexbox is that it is flexible."

  • @HorizonHuntxr
    @HorizonHuntxr Před 3 lety +20

    Father has blessed us with another 🔥 video. Much love!

  • @RenrenKlein
    @RenrenKlein Před 3 lety +33

    I work as a developer and I swear the tips and tricks I learn from your videos are invaluable keep it up. Other than Stackoverflow your one of my first go to destinations.

  • @redwoodJB
    @redwoodJB Před rokem

    Still coming back to your videos from a year ago and they're still saving my butt. You make CSS so easy to understand and best of all how best to organize it.

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

    Kevin, please don't stop doing what you do. As someone who is coming from the backend and trying to move to the frontend, I love your videos because they are so quick and informative.

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

    Kevin honestly since stumbling upon your channel my life has changed for the better. After a pause of 6 years I fell in love with CSS again.

  • @xomgitsjay
    @xomgitsjay Před 2 lety

    Thank God I found your channel. Im new to front end and was having a hard time with flex box and things overflowing and not aligning correctly and the way you explain things helped me understand how to get it fixed. Keep up the great work!

  • @vivekchaugule2122
    @vivekchaugule2122 Před 3 lety

    Was using for arranging elements exactly centered for almost 3 years and never understood properly. Hats off to you Kevin! Looking forward to see more of flex box videos. Lots of love from 🇮🇳

  • @joan-mariacbrooks
    @joan-mariacbrooks Před rokem +1

    I'm in the FreeCodeCamp coding program at my local library and I found your tutorials on CZcams; you have no idea how helpful your videos are so please, don't stop doing them! I've told 3 of my classmates about your videos so I'm pretty sure they're finding them helpful as well. Thanks for explaining things so clearly!

  • @lo-tar1442
    @lo-tar1442 Před 3 lety +23

    Ok guys here's what you need to know... Give your parent element that contains your children the property display: flex; & flex-direction: row;
    Then give your children the property flex-grow: 1; and like magic you have yourself a pretty solid flexbox layout. CSS is life CSS is love :)

    • @Nicklefritz
      @Nicklefritz Před 2 lety

      So I've been trying to do something like this with images, but I'm finding that the images aren't responding well to the flex-box grow property. (I'm trying to have one image take up 2/3 of the width of the page, and the other image 1/3, but flex-grow isn't making it work. However, I got my desired look by using a width of 200% on one image, and width 100% on the other...) Any idea why the flexbox grow property isn't cooperating with images?

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

      ​@@Nicklefritz if you set flex-basis:0 for your children and then give flex-grow they work correctly.

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

    I am absolutely in love with this channel. This is how teaching should be done. You take an issue, you explain why it's an issue, and you teach a solution, and explain why that works too. Absolutely brilliant

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

    Kevin, once again you break the whole! It's so easy to understand when you explain it like that. Thank you so much, dude.
    🤯🤗

  • @KevinPowell
    @KevinPowell  Před 3 lety +17

    If you'd like to really dive into flexbox and learn the ins and outs of it and make creating layouts a breeze: flexboxsimplified.com

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

      Hey Kevin, are you also planing on launching gridsimplified?

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

      @@josecabana3d eventually, yup. Have some other things first, bit its in the plans!

  • @KICKASS4272
    @KICKASS4272 Před 3 lety

    Very glad I found your channel. You have a great way of explaining how things work. I already had a solid understanding but it was great hearing your perspective and understanding of the property.

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

    Thank you Kevin, this was so helpful! Would love to see more short videos like this explaining the function behind some basic CSS.
    I unfortunately never took a real course or learned CSS from the ground up but learned it aside to web development as a whole, that's why a quick basics video like this has a huge impact on me! Love your content, I'll keep watching :)

  • @FilipeFreire
    @FilipeFreire Před 3 lety +50

    The "flex-wrap" can save you some media queries once in a while too! =) Awesome video as always Kevin, really appreciate it!

    • @keent
      @keent Před 3 lety

      hell yea also don’t forget flex-shrink and flex-grow!

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

      But would flex-wrap work with width 100% ??

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

      @@ScopedMach1neyou could clamp the width so that it has a minimum and then flex wrap.

  • @BlurryBit
    @BlurryBit Před 3 lety

    Excellent stuffs as usual. Love how you explain "why" first than the usual "how to fix it". Applies for all of your videos.

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

    For anything design or CSS related, I always check if you have a video on it before googling ❤ guaranteed top quality! Keep up the great work as always 😁

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

    Kevin, my watch later list is basically your whole channel

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

    I stumbled upon your channel accidentally and man !! you talk about real stuff

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

      Welcome, and glad that you're enjoying my content!

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

    whenever we face problem in design the only one question rises "why this happening". you just gave the answer. 💗🦉

  • @MatthewWeiler1984
    @MatthewWeiler1984 Před 3 lety

    Thank you Kevin for all of the helpful videos.
    I now understand how flex-boxes actually shrink.
    The 100% width also makes sense now.

  • @TheBaltyboys
    @TheBaltyboys Před 3 lety

    Best CSS teacher on CZcams, thank you so much 👍

  • @itsviney
    @itsviney Před 3 lety

    It's amazing that I've been using flexbox for so long and never stopped to think *why* it does what it does. Brilliant video! Thanks.

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

      Same here to be honest. One of the fun things about teaching things is you end up figuring out much more how they work, lol. Then I get to share that, and hopefully it helps :)

  • @benceszke7209
    @benceszke7209 Před 3 lety

    been using flexbox every day for the past year. and still clicked :p. idk what i expected. but great video never the less!!! love all your vids :)

  • @user-mo3cw6go7c
    @user-mo3cw6go7c Před 2 lety

    With you never disappointing you can always find the most advanced topics in CSS

  • @DWCmoose
    @DWCmoose Před 3 lety

    That explains so much so eloquently, thanks!

  • @tamzidmahmud6129
    @tamzidmahmud6129 Před 3 lety

    This lesson shows that every problem has a simple solution. Thanks a lot

  • @mouinmcharrafieh8078
    @mouinmcharrafieh8078 Před 3 lety

    Thank you Keving. I feel that you give me motivation to continue learning in a welcoming atmosphere. I am slowly moving career from app rudimentary functional development to app design and user exprience UX/UI. i am so happy to follow your videos.

  • @tomascarignano5002
    @tomascarignano5002 Před 3 lety

    Hi Kevin. Definitely one of the best front-end dev teachers I’ve seen!

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

    Flex has flexed my brain beyond measure...no jokes. Thanks a lot for this video

  • @bosnianowitzkifan41
    @bosnianowitzkifan41 Před 3 lety

    This is an awesome video!!! Really helpful for me as i'M someone who's been working with backend for years and now has to do some CSS on a project, thank you!

  • @sanjaysushiv13
    @sanjaysushiv13 Před 2 lety

    You are CSS god to me, the way you explain everything. I loved it. It's like got teaching us about life.

  • @parthkharwar69
    @parthkharwar69 Před 3 lety

    I've been working on making a browser extension originally written for Chrome work across all browsers.
    And actually learning why properties be what they be has sped up that process tremendously.
    Thank you so much!

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

    Sometimes it has a mind of it's own is so true. No matter how comfortable you get with it it can still just be odd at times.

  • @pranavdhamanage
    @pranavdhamanage Před 3 lety

    You're just a genie of css...just amazing!!!

  • @kalyanideshmukh2529
    @kalyanideshmukh2529 Před 3 lety

    Thank you Kevin Sir. Good Job. Really worth taking Lessons

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

    You must be patron saint of CSS :D Thank you so much for every videos you ever made :D

  • @gerar10s
    @gerar10s Před 3 lety

    Thanks for a great video and explanation! More "Why" videos please! It's the best way to learn!

  • @patrickknows2296
    @patrickknows2296 Před 3 lety

    Your tutorials are gold

  • @LiveMahs
    @LiveMahs Před 3 lety

    been using flexbox for a while now and I kinda just wing it and try random things until i find a solution haha
    this video was so helpful!

  • @joshuastojkovic3501
    @joshuastojkovic3501 Před 3 lety

    Love your content Kevin!!

  • @devshrimali325
    @devshrimali325 Před 3 lety

    I Learn a lot from this channel Thank you

  • @mchepen
    @mchepen Před rokem

    im studying for full stack and i appreciate your videos soooo much

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

    I was expecting to know a bit more about the difference between width and flex-basis, in overall I understand is better to have flex-basis than width.
    I don't know if this is relevant but I would like to know from you!
    I like your videos! awesome content, keep going!!!

  • @fylip22b
    @fylip22b Před 2 lety

    Very good tip! I will use it this monday morning. I did not know the "gap" word before your video. Philippe P.

  • @muhammadsiddiqui2244
    @muhammadsiddiqui2244 Před 2 lety

    If you have enjoyed? Come on Kevin, enjoy is such a small word, it has made me happier in life as a whole.

  • @AnonDe71
    @AnonDe71 Před 3 lety

    Thank you so much for simple explanation!

  • @mdazizulislam2498
    @mdazizulislam2498 Před 3 lety

    Very very nice presentation. Thank you

  • @tthompson9509
    @tthompson9509 Před 2 lety

    Thank you! I really enjoy your contents.

  • @alfriivqizkaj5536
    @alfriivqizkaj5536 Před 3 lety

    We need more simple tricks like this

  • @khushal9456
    @khushal9456 Před 3 lety

    How simple way to explain, thanks kevin.

  • @berad6034
    @berad6034 Před 3 lety

    damn you’re so good at this

  • @akshaychidre5235
    @akshaychidre5235 Před 3 lety

    Great explanation. Thank you

  • @emkisn
    @emkisn Před 3 lety

    Great explanation, by the way, the quality of the video is so awesome

  • @javieroa8214
    @javieroa8214 Před 3 lety

    Thank you so much for doing this vids 🙏🏻

  • @cristianouzumaki2455
    @cristianouzumaki2455 Před 3 lety

    Kevin , couldn't you have released this earlier. Kevin the best guy for css tuts.

  • @scott9695
    @scott9695 Před 3 lety

    Good lesson and I like the pace. Subbed

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

    First comment! Thank you so much Kevin. From Argentina 🇦🇷!

  • @jorgecamacho9430
    @jorgecamacho9430 Před 3 lety

    I think I love you.... I just jump to Lear this world of coding about a month ago and how you explain things is the best.

  • @JohnSmith-rn3vl
    @JohnSmith-rn3vl Před 3 lety +1

    I've been doing web dev for 20 years and I feel like an idiot almost every time I watch one of your videos. I love it. Thank you.

    • @malcym3394
      @malcym3394 Před 3 lety

      I agree - I've got 24 years in web design & development, and still learn something new every day.

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

    You have removed my confusions great !!!!

  • @MattHanes
    @MattHanes Před 3 lety

    Fantastic explanation!

  • @0the0ambient0
    @0the0ambient0 Před 3 lety

    Great explanation. Thank you.

  • @und3dpix959
    @und3dpix959 Před 3 lety

    You are just an amazing teacher! :D

  • @eudoraurora
    @eudoraurora Před 3 lety

    Thank you so much kevin, simple but really meaningfull

  • @brightonshifu
    @brightonshifu Před 3 lety

    golden explanation is what I'd call this on the title 👌🏽👌🏽🌟

  • @samuelkundael3503
    @samuelkundael3503 Před 3 lety

    Nice work, I was only using flex for alignment and inline-block for the columns.

  • @adeleke5140
    @adeleke5140 Před 3 lety

    Soo informative. Thank you for creating this.

  • @peoplearecool8766
    @peoplearecool8766 Před 3 lety +20

    What about flex:1; or flase-basis:100%; instead of width:100%; ?

  • @mohammadnoushadsiddiqui4786

    I love your videos thank you so much sir

  • @adee-xt7vh
    @adee-xt7vh Před 2 lety +3

    Kevin, you are the KING OF CSS! Those, who want to know what they do (and not just copy-paste commands) and why, really appreciate the efforts (if it's an effort, but I think it's a pleasure for you) you make week by week. Keep up doing these amazing videos, we do really need them! Thanks a lot!

  • @aarontheeranitpongtongmuan233

    Thanks for sharing such a useful content .

  • @sulpher9
    @sulpher9 Před 3 lety

    Great explanation, thanks!

  • @alain_laroche
    @alain_laroche Před 3 lety

    That is so helpful. Thanks!

  • @ahmedhussain-ph2fh
    @ahmedhussain-ph2fh Před 3 lety

    this is eye opening , great vedio

  • @EmoryFlame
    @EmoryFlame Před 2 lety

    Is there like a teachers Oscar we could nominate you for? Cause you deserve it!

  • @scriptkid_rs
    @scriptkid_rs Před 3 lety

    Woah please do more of these

  • @MirkoMancini
    @MirkoMancini Před 3 lety

    Brilliant, as usual 😊

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

    Here goes my favorite css mentor

  • @ChrisAthanas
    @ChrisAthanas Před 3 lety

    Great explanation, I finally get it

  • @aram5642
    @aram5642 Před 3 lety

    A mind of its own - perfect call! I am especially puzzled by the min-width: 0 trick that I usually need to use, esp when trying to get text-overflow: ellipsis in a fluid cell.

  • @matteonicoli
    @matteonicoli Před 3 lety

    kevin, I’m a huge fan. Thank you so much! Could you also cover: 4 even-columns, that break after column 2?
    ( instead of, after column 3 first )

  • @dineshthangavel
    @dineshthangavel Před 3 lety

    that was a great and clear explanation, thanks

  • @iankaoel
    @iankaoel Před 3 lety

    Amazing content!

  • @spacedoohicky
    @spacedoohicky Před 3 lety

    Flexbox is everything. Flexbox is life.

  • @RD-jr8nv
    @RD-jr8nv Před 3 lety

    The lesson being, keep it 💯

  • @frijeylabs2892
    @frijeylabs2892 Před 3 lety

    Great Content.

  • @inayathkhan100
    @inayathkhan100 Před 3 lety

    Very useful video, thank you 👍

  • @jenniferward6821
    @jenniferward6821 Před 3 lety

    My hero!

  • @rezarahman1782
    @rezarahman1782 Před 3 lety

    I thought I knew everything about flexbox. Than I created a container and i have given an specific width and inside this I made three other div with specific width. Than I used flex. And boom! Everthing inside the parent box is in mass.😂😂. Thanks Kevin. You are like just Gurdian Angel.

  • @ilkowl
    @ilkowl Před 3 lety

    I have a question. If I use display: "flex" then I switch to "flex-basis" instead of "width". Only for the patient with property flex and direct children (if needed). Is that a bad practise? Need opinion?

  • @tyu3456
    @tyu3456 Před 3 lety

    I love this man

  • @TheHumanistX
    @TheHumanistX Před rokem

    Kevin, thanks for this (and all your videos). Would setting the basis and/or flex-grow achieve a similar result or am I getting myself confused? Does this `width=100%` just make more sense and work better over all?

  • @n8_may
    @n8_may Před 3 lety

    So helpful!

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

    i have been using flex:1 on the direct child elements.

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

    Good stuff.

  • @MichaelCampbell01
    @MichaelCampbell01 Před 3 lety

    Brilliant.