Compare Flex Grow and Flex Shrink within a Flexbox Container

  Рет қаралды 15,333

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

Пікірлер: 25
@ChrisMochinskiMusic
@ChrisMochinskiMusic 7 ай бұрын
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
@ligmadick3401
@ligmadick3401 3 жыл бұрын
"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....
@edgarchavez5439
@edgarchavez5439 Жыл бұрын
Great explanation and presentation!
@matheusdecampos430
@matheusdecampos430 4 жыл бұрын
Hell yeea, awesome content man! thank you
@BGdev305
@BGdev305 2 жыл бұрын
Very well explained!
@essenzoffiziell8421
@essenzoffiziell8421 7 ай бұрын
thank for your video. God bless you
@4.otechnologysaikumar829
@4.otechnologysaikumar829 3 жыл бұрын
Goood explanation.............understood clearly....thank you so much.....
@bilaljamaludeen6535
@bilaljamaludeen6535 3 жыл бұрын
Thanks for the video..!!
@JazmineJessica
@JazmineJessica Жыл бұрын
perfect explanation
@salemmajed916
@salemmajed916 4 жыл бұрын
Hi I found the way thank you very much.
@hosseinroosta5154
@hosseinroosta5154 2 жыл бұрын
Thanks for great video. How did you code to automaticly figure out the width of each box?
@ChrisMochinskiMusic
@ChrisMochinskiMusic 7 ай бұрын
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!
@paieu
@paieu Жыл бұрын
i just started learning
@mehtabahmed6092
@mehtabahmed6092 2 жыл бұрын
Thank you so much, I was really confuse I’m flex. and flex. grow especially
@dreiigHiveSGClips
@dreiigHiveSGClips 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@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 3 ай бұрын
4:10 what would "three times faster" mean???
@SixMinutesSmarter
@SixMinutesSmarter 3 ай бұрын
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 Ай бұрын
@@SixMinutesSmarter Thanks, for your response.
Flexbox Responsive Layout with 9 Boxes
4:51
Six Minutes. Smarter.
Рет қаралды 6 М.
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 14 МЛН
Заметили?
00:11
Double Bubble
Рет қаралды 2,4 МЛН
Flex grow, shrink, basis | CSS Flexbox tutorial
8:42
Scrimba
Рет қаралды 30 М.
A new approach to container and wrapper classes
25:27
Kevin Powell
Рет қаралды 242 М.
How Do Flex-Basis, Flex-Grow, Flex-Shrink Work? | CSS Flexbox
14:11
The Code Creative
Рет қаралды 9 М.
Learn Flexbox in 15 Minutes
15:12
Web Dev Simplified
Рет қаралды 1,1 МЛН
The thing people get wrong about flex-basis
9:00
Kevin Powell
Рет қаралды 58 М.
6 Advanced Flexbox Features You Probably Don’t Know
14:54
Web Dev Simplified
Рет қаралды 108 М.
CSS Flex Shrink Explained in Tamil
7:04
Tamil Developer
Рет қаралды 2,1 М.
Flexbox design patterns you can use in your projects
15:33
Kevin Powell
Рет қаралды 434 М.
Learn Flexbox CSS in 8 minutes
8:16
Slaying The Dragon
Рет қаралды 1,4 МЛН
CSS Flexbox Tutorial #6 - Flex Basis
5:02
Net Ninja
Рет қаралды 123 М.
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 14 МЛН