Bro, you're better than the official documentation and all those lame tutorials combined! Great work!
@jarrychen20962 жыл бұрын
I spent a lot of time reading the documentation, but eventually understood it in your ten minutes video! So incredible.
@Powerful-Manifestor-2 жыл бұрын
Watching all other videos, I wondered why the width of one is not in proportion to the other. You made it so clear that the extra room is divided in that proportion. Awesome! Two questions: 1. What is flex-basis when flex:1 is used? 2. What is the difference between using width vs flex-basis on a flex item?
@arifulislamadil42953 жыл бұрын
i have watched lots of youtube videos about flex-grow and shrink., i really didn't understand them properly after i watched this it's gave the clear concept about flex-grow and flex-shrink.Thank you very much Wes Bos
@nellypolly6639 Жыл бұрын
this video gave me more understanding of flex shorthand. Thank you
@pilloIMNG Жыл бұрын
Great explanation! I now understand more about these properties, thank you! I gotta note that the intro is very loud and your voice is very low, but this video is 7 y o so might have changed.
@debi1992 жыл бұрын
thanks for all the efort and love
@ajcics7 жыл бұрын
You're an incredible teacher. Thank you
@rafayzia41802 жыл бұрын
love your gentle voice bro ! thank you :)
@dudakoff1000 Жыл бұрын
You are a gem. The CSS tricks article dedicated to this topic failed me this time
@prajwalpandeshwar99679 ай бұрын
Thankyou so much for such an easy explanation!!
@codeme8016 Жыл бұрын
Good tutorial. You can also enable the browser's responsive "toggle device toolbar" tool e.g. Chrome to resize the frame instead of resizing your entire browser window.
@WILLGYS3 жыл бұрын
Man is for box, not the container! that's why it wasn't doing anything. Thanks Wes
@shivarammuthukumaraswamy71643 жыл бұрын
Thank You so much for the clear explanation
@HarpreetSingh-vf6lu7 жыл бұрын
Can you explain the math of why we use 1? What calculations are done for use to know which number to use and what it does for flex grow? Thank you.
@suyashpurwar83103 жыл бұрын
This video was really helpful! Helped a lot! I was very confused when it comes to these three properties. Thanks a lot!!
@boiiiiiiiiiiiiiiii2612 Жыл бұрын
thank you for the explanation.
@Bruce-Baum2 жыл бұрын
way better explanation than codecademy
@Dorff_Meister2 ай бұрын
Very helpful. Thanks.
@friend13108 жыл бұрын
Hi Wes, can you please use fractions to express how much an element is giving away of its width when using flex-shrink? I think I don’t get it. You use flex-basis:400px for both .box1 and .box2. So, when the container is 800px wide, each box is 400px wide. Then you use flex-grow:10 for .box1 and flex-grow:1 for .box2. So, when the container gets wider than 800px the extra room will get split between the elements using the ratio we set for flex-grow. My understanding is that .box1 gets 10/11 of free space and .box2 gets 1/11. So yes, .box1 gets 10x more extra space than .box2. But how does this work with flex-shrink? We used the same values for flex-shrink as for flex-grow, but obviously .box1 is not giving away 10/11 of its width when the container gets below 800px. Thanks!
@friend13108 жыл бұрын
I think I got it, but I am not sure if I'm right. I think that if the container gets for example 700px wide the .box1 and 2 miss 100px, they just can't be 400px each any more. So, they have to split the 100px using the ratio above, meaning .box1 will be narrower by 100*10/11~90.91px and .box2 will be narrower by 100*1/11~9.09. The new width of .box1 will be 400-90.91=309.09px and the width of .box2 will be 400-9.09=390.91px. Now .box1 and .box2 (309.09+390.91=700) exactly fit 700px wide container. Can somebody confirm my theory? :D
@friend13108 жыл бұрын
Yes, that's how it works. I just checked it using web inspector.
@HarpreetSingh-vf6lu7 жыл бұрын
Hey, can you explain the math behind this please of how flex-grow works, hard to find online.
@matthewbell52824 жыл бұрын
Really, really well explained - thank you!
@montecristo79632 жыл бұрын
Thank you that was really helpful
@suridchakma44033 жыл бұрын
Your style of describing is super 🔥
@ahmedam77 Жыл бұрын
great video!
@NanarStudios2 жыл бұрын
Helpful, but you have to watch in 1.5x speed for it to almost feel like a normal speaking speed
@StrangeIndeed3 жыл бұрын
I had to refresh my memory about flexbox, and this video was great for that, thank you c;
@abstractdavis4 жыл бұрын
Thanks a lot, very clear explanation
@Free--Soul3 жыл бұрын
great job
@MikeMike-ms1ns3 жыл бұрын
why is there bullshit like if you are in the 10th level div you can't set it to use the remaining space but need to put display flex on every level of div above it? Shouldn't immediate div be enough?
@Undrios Жыл бұрын
thank you!
@ronishlopchan20202 жыл бұрын
great content!
@ycombinator7652 жыл бұрын
Wes is the Boss
@neozhang87004 жыл бұрын
excellent explanation~~
@codesiddhi Жыл бұрын
👍well explained, thanks :)
@LongNguyen-op7ls4 жыл бұрын
Very good tutorial man ! These flex things was annoying me for hours
@steelo22142 жыл бұрын
yah that’s it. subscribed!
@uimonk3 жыл бұрын
you are awesome..
@austinethridge27715 жыл бұрын
Thank you sir! I understand it now
@ek4m815 жыл бұрын
that's good
@henriquemagno9326 Жыл бұрын
thanks
@Stone_6244 жыл бұрын
This is a beautiful explanation, Thank you!
@armandoperez95287 жыл бұрын
Oh my god, this intro is soooo annoying. It is still a great tutorial.
@SuperKojota6 жыл бұрын
Stupid whisper.
@leakyabstraction3 жыл бұрын
Pretty sure all the downvotes are the result of that intro. I was so annoyed... Started to wonder if there is something seriously wrong with me to find it that annoying; but then I saw your comment.
@spencerwasden51553 жыл бұрын
@@SuperKojota did you mean "whistle"? If so I agree--it actually hurt my ears. But great tutorial!! Thanks @Wes Bos
@ankurc4 жыл бұрын
Thank you. You made it very clear!
@lddonovan8 жыл бұрын
Great tutorial!
@amr199320122 жыл бұрын
Simple and informative, Thank you !
@jaredsimon37312 жыл бұрын
Thank you sir. This was great.
@chome46 жыл бұрын
How do you apply 'wrapping' to force the second box onto the second row?
@blueapple91353 жыл бұрын
Thanks for well explained.
@barrbudo8 жыл бұрын
What's the extension you are using for informing the screen dimensions? The ones I've found so far do not work if I'm working with a local file :(
@toddjudd95528 жыл бұрын
+Barbudo view port dimensions available in the chrome store here: chrome.google.com/webstore/detail/viewport-dimensions/kchdfagjljmhgapoonapmfngpadcjkhk/related?hl=en-US
@barrbudo8 жыл бұрын
Todd Judd Thanks :)
@ted20912 жыл бұрын
explained it perfectly, thank you
@williamjamesrapp73564 жыл бұрын
Looks good You do a fair job of teaching this BUT what happens when I type in What you type in and IT STILL DOES NOTHING ?
@shotbylowie4 жыл бұрын
check if you linked your css correctly in your
@majdalkwaja97925 жыл бұрын
Thanks bro
@haley80043 жыл бұрын
Someone know what this means? I have no idea. "kind of look at your layout and intelligently figure out how big these other ones should be"
@dijanad60214 жыл бұрын
good explanation!
@juniorusca6023 жыл бұрын
I love this explication
@graceji40827 жыл бұрын
awesome tutorial!
@jasserlabiadh70122 жыл бұрын
bro thaaank youuuuuuuuuuuuu ily
@cashpay503 жыл бұрын
subscibed!
@Johann.Liebert2 жыл бұрын
thanks :D
@dvidalv3 жыл бұрын
excelent!
@nasko7177 жыл бұрын
Thanks!
@nailalzuhairi26905 жыл бұрын
u r brilliant
@EquinoXReZ3 жыл бұрын
Fire
@napolunatico6 жыл бұрын
I think this is not completele well explained. Why? Because when you give flex-grow or flex-shrink to an element you do not make 'x' times bigger than the other one, you are just using 'THE AVAILABLE SPACE', and dividing it in many spaces as you have given to the summary of all the elements, and from this point the browser gives the size to every element according with the number of flex-grow o shrink that you gave to it every single element. (My english is not good enought sorry). Bless!
@tabniletley26434 жыл бұрын
i actually really like the intro. it's so 90's!
@l3tk1ll7 жыл бұрын
ty
@BohemianOnTheRoad9 ай бұрын
omg its 8 year ago
@igu642 Жыл бұрын
❤❤
@amirhossein79843 жыл бұрын
Just play at 1.25x speed.
@afaque.4 жыл бұрын
what if he started again making these intros in his new videos...that will be