Compare Flex Grow and Flex Shrink within a Flexbox Container

  Рет қаралды 16,232

Six Minutes. Smarter.

Six Minutes. Smarter.

4 жыл бұрын

Use the flex-grow and flex-shrink properties to visualize the impact these properties have within a flex container that contains other flex children.
Demo file: / 31772383

Пікірлер: 26
@ChrisMochinskiMusic
@ChrisMochinskiMusic 8 ай бұрын
I’ve been a dev for a decade. Professionally for half of that. These properties have always been a bit fuzzy to me, in spite of TONS of content I’ve consumed. Your explanation here - “three times faster” - has straight up changed my life. Total eureka moment. Thank you! MAKE MORE CONTENT!
@kushpatel9911
@kushpatel9911 3 жыл бұрын
Great Video. Love yoour tone and speed on teaching this content! Subscribed and looking forward to more videos
@amarbugarin6393
@amarbugarin6393 4 жыл бұрын
Ty lad it rly helped me understand and comprehend flex better now I am not afraid to experiment with layout of content in a page :D
@edgarchavez5439
@edgarchavez5439 Жыл бұрын
Great explanation and presentation!
@matheusdecampos430
@matheusdecampos430 4 жыл бұрын
Hell yeea, awesome content man! thank you
@BGdev305
@BGdev305 2 жыл бұрын
Very well explained!
@4.otechnologysaikumar829
@4.otechnologysaikumar829 3 жыл бұрын
Goood explanation.............understood clearly....thank you so much.....
@essenzoffiziell8421
@essenzoffiziell8421 9 ай бұрын
thank for your video. God bless you
@JazmineJessica
@JazmineJessica 2 жыл бұрын
perfect explanation
@bilaljamaludeen6535
@bilaljamaludeen6535 3 жыл бұрын
Thanks for the video..!!
@salemmajed916
@salemmajed916 4 жыл бұрын
Hi I found the way thank you very much.
@ligmadick3401
@ligmadick3401 4 жыл бұрын
"Display: Flex" is amazing. Why are there so less people talking about this cool feature.
@lowercaseguy3578
@lowercaseguy3578 3 жыл бұрын
i think, viewport is quite easy compared to flex maybe thats the reason flex is kept on the side....
@paieu
@paieu Жыл бұрын
i just started learning
@hosseinroosta5154
@hosseinroosta5154 2 жыл бұрын
Thanks for great video. How did you code to automaticly figure out the width of each box?
@ChrisMochinskiMusic
@ChrisMochinskiMusic 8 ай бұрын
I think that’s the JavaScript he mentions - the ID of each box is captured in some JS using getElementById and THEN using offsetWidth. He captures the resulting number and displays it in those little text fields with a JS variable (use “let” not “const”). Even easier with React!
@dreiigHiveSGClips
@dreiigHiveSGClips 3 жыл бұрын
that was helpfull no cap
@salemmajed916
@salemmajed916 4 жыл бұрын
Hi Thanks for this valuable information. Sir how you can changing the width in the .
@mgerry1992
@mgerry1992 3 жыл бұрын
The is an inline element (i.e. its display property is set to "inline" by default), which means that the element's size is determined only by its content (that's why setting its width or height has no effect). If you want to be able to set a 's width, you need to set its display property to "inline-block" (or "block" but in that case I would use a instead).
@salemmajed916
@salemmajed916 3 жыл бұрын
@@mgerry1992 Thanks you it's nice to replying .
@mastercode7851
@mastercode7851 4 жыл бұрын
nice nice nice pleaes keep up please make a full responsive web tutoria
@YousifAtique
@YousifAtique 4 ай бұрын
4:10 what would "three times faster" mean???
@SixMinutesSmarter
@SixMinutesSmarter 4 ай бұрын
That is tricky. If the browser viewport is stretching wider, the item with flex grow 3 will grow at 3 times the rate of the other flex items. I generally only use flex grow of 0 or 1.
@YousifAtique
@YousifAtique 3 ай бұрын
@@SixMinutesSmarter Thanks, for your response.
@mehtabahmed6092
@mehtabahmed6092 2 жыл бұрын
Thank you so much, I was really confuse I’m flex. and flex. grow especially
Flexbox Responsive Layout with 9 Boxes
4:51
Six Minutes. Smarter.
Рет қаралды 6 М.
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
Flexbox design patterns you can use in your projects
15:33
Kevin Powell
Рет қаралды 438 М.
Flex grow, shrink, basis | CSS Flexbox tutorial
8:42
Scrimba
Рет қаралды 33 М.
What happened to Bluelearn? Final Thoughts
9:04
Curious Harish
Рет қаралды 76 М.
Flexbox is more complicated than you thought
22:42
Kevin Powell
Рет қаралды 152 М.
I finally found a great use-case for flex-basis!
4:18
Kevin Powell
Рет қаралды 55 М.
CSS Flexbox in 100 Seconds
1:44
Fireship
Рет қаралды 673 М.
Recursion is More INTUITIVE Than You Think
5:40
Marcus Koseck
Рет қаралды 200
CSS Flexbox Tutorial #4 - Flex Shrink
4:10
Net Ninja
Рет қаралды 116 М.