Flex grow, shrink, basis | CSS Flexbox tutorial

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • 🎓 View our courses: scrimba.com/li...
    The flex-grow, flex-shrink and flex-basis properties decide how the items grow and shrink with the width of the container.
    Once you've learned CSS Flexbox, you'll wonder how you ever managed to build websites without it. It gives you all the tools you needed in order to properly arrange content inside flexible containers.
    Given that all websites need to be flexible and responsive these days, Flexbox is a must-have skill for web developers.
    💜 Play with this code on Scrimba: scrimba.com/le...
    💻 Check out Scrimba’s interactive learning platform:
    scrimba.com/
    🌲 Linktree:
    scrimba.com/li...
    🤑GET AN EXTRA 10% OFF SCRIMBA PRO SUBSCRIPTION
    Follow this link to claim your discount (expires Dec 1 2023)
    scrimba.com/pr...

КОМЕНТАРІ • 87

  • @cherie4665
    @cherie4665 Рік тому +15

    One of the best visualisations. People really shouldn't overcomplicate such a straightforward concept. Great video!

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

      It's just because css is the shittiest language ever made so it makes sense.

  • @person81045
    @person81045 Рік тому +3

    Seen other videos where its basically someone using as many big words as possible to explain such a simple concept. This right here is actually TEACHING vs flexing on viewers (no pun intended)

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

    Dude, this was a life saver! First tutorial I've found that clearly explains it. THANK YOU

  • @definty
    @definty Рік тому +3

    Very rarely do I come across a CSS tutorial done better than Kyle or Kevin but your explanation make it much simpler than anyone else's I've seen so far!

    • @LewisBenson-Codex
      @LewisBenson-Codex Рік тому +1

      It's funny that you mentioned these 2 channels by their first names, not their UA-cam channels, and I knew exactly who you meant. I rely on them so much lol

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

      @@LewisBenson-Codex haha they is the goats!

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

    Absolutely one of the best tutorial to cover properly and adequately this topic on yt.

  • @stellanwae5050
    @stellanwae5050 Місяць тому

    Ah! I love Scrimba. Great video, you made it so simple!

  • @mjylove2
    @mjylove2 7 місяців тому

    you did really good job explaining the concept! thank you!

  • @GoomusicLtd
    @GoomusicLtd 6 місяців тому

    Thank you! Very well explained!

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

    I checked 5 articles all all articles made it too hard to understand. Hats off to you! Amazing Explanation.. Thanks

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

    Half way in and I'm wooooowed! you are amazing at how you explain things so easily. Not a CSS beginner but I still came for this and you made it all easy to grasp, Thank you.

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

    Thanks, really great and clear tutorial. Been a FE developer for many years, but never really took time to look into the details of flex grow and shrink. So now I know :)

  • @hjz2000
    @hjz2000 7 місяців тому

    Lmao I've been searching for tons of videos on basis and you discussed it in such a simplistic way. Thank you sir.

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

    Thank you very much for the visualization. It really helped!

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

    Fantastic! So easy to understand, thank you!

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

    Thanks for your lesson, this is the first explanation that help me understand the differernt between those elements.

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

    best explanation in such a short time, my friend you are a hero.

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

    wow ...very explicit love these contents smoooth thanks a lot

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

    One of the great explaination. Thank you brother 👌👌

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

    Wow, I couldn't understand this, even when I read the docs it was so confusing, but you made it son easy to understand! Thanks so much!

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

    Very clear explanation.

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

    Finally, I was able to understand it. Thank you so much mate.

  • @anime_gen875
    @anime_gen875 Місяць тому +1

    you got a new sub ♥

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

    thank youuuu! ive loved the way how you explained things

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

    This is the best explanation on flex box.

  • @adhilrumais5106
    @adhilrumais5106 6 місяців тому

    Great explanations!

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

    Good tutorial!

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

    YOU ARE AN ANGEL THANK YOU HOPE YOU LIVE A HAPPY FULLFILLED LIFE

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

    brilliant - exactly how I love to play to pick up technological nuances - thanks!

  • @Yash-ry5wj
    @Yash-ry5wj 2 роки тому +2

    Finally I understood it.
    Thank you ❤️

  • @hplat-vku
    @hplat-vku 7 місяців тому

    thank brooooo, u save me about flex css

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

    Thanks mate

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

    Amazing! Very clear explanation, this was extremely helpful

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

    thank you so much for this.

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

    Thank you. Best tutorial on the planet.

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

    U re good at getting my focus

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

    Excellent explanation!

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

    Thanks Sir! Great explanation!

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

    you explain it very well, and it was easy to understand.

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

    Very simple and too the point explanation, thanks :)

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

    It is easy to understand. thank you. But you need to explain more about flex basis

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

      it works like a width right?

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

    Very nicely explained 😃

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

    Thanks mate, really well explained.

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

    Amazing explanation.) Thank you.

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

    Fantastic One!! really appreciate your explanation.

  • @akibahnaf-lu1sr
    @akibahnaf-lu1sr 2 місяці тому

    thanks it helps

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

    The best explanation, I don't know why it has 800 likes and 21 thousand views

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

    This is awesome! Thank you!

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

    Very well explained. Thank you.

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

    Really amazing explanation ❤

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

    it's really helpful, thanks for your lesson

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

    Great work. Thank you so much

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

    Good explanation. Thank you so much

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

    very good explaination. apreciate it

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

    Best explanation ever !

  • @ARhaze2x
    @ARhaze2x 7 місяців тому

    I am trying to use a span tag to create a bottom border and am having trouble with getting it to appear. how should I do that

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

    if srink and grow is "1" what the seance to set basis?

  • @satadhi
    @satadhi 7 місяців тому

    why do we have to make css so diffucult man this is crazy; too much random information; sorry for the rant; btw thanks a lot for the explaination, you are doing god's work here

  • @Victor-Ike
    @Victor-Ike 2 роки тому

    What about using flex with responsive units like %? Example flex: 33%

  • @LamNguyen-jp5vh
    @LamNguyen-jp5vh Рік тому

    Thank you!

  • @Pavankumar-wq2fp
    @Pavankumar-wq2fp 2 роки тому

    really a great tutorial

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

    good explanation

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

    Thank you for the video but I think the default value for the flex - basis value is : auto

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

      Yes, you are correct. Still this video is extremely helpful.

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

    Thanks

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

    Excellent

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

    Thanks a- lot!

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

    name of the instructor?

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

    best!! thanks

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

    Thank u ❤

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

    "... of the remaining space" not the whole space. Very important distinction. Having a flew-grow: 1000 doesn't mean it will grow 1000 times faster, only what portion of the REMAINING space will be added to the width.

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

    thanks, sir

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

    thanks sir

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

    thank you so much ;-;

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

    Thx

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

    Thank

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

    Awesome

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

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

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

    merci

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

    I love you 💟

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

    Thanks

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

    Wonderful