HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>The flex-shrink property is very similar to the flex-grow property. It is used to assign the proportions by which flex items “absorb” negative space.</p>
1 <p>The flex-shrink property is very similar to the flex-grow property. It is used to assign the proportions by which flex items “absorb” negative space.</p>
2 <p>The greater the value of the shrinkage factor for this item, the more negative space it will absorb and the more the item will be shrunk.</p>
2 <p>The greater the value of the shrinkage factor for this item, the more negative space it will absorb and the more the item will be shrunk.</p>
3 <p>When the basic sizes of flex items are<em>the same</em>, the shrinkage proportions for elements are considered to be the same as the growth proportions. If the basic sizes of flex items differ, then use of this mechanism can be complicated. We will explore it in more detail in the next assignment.</p>
3 <p>When the basic sizes of flex items are<em>the same</em>, the shrinkage proportions for elements are considered to be the same as the growth proportions. If the basic sizes of flex items differ, then use of this mechanism can be complicated. We will explore it in more detail in the next assignment.</p>
4 <p>In the meantime, experiment again with the factors in the puzzle assignment.</p>
4 <p>In the meantime, experiment again with the factors in the puzzle assignment.</p>
5 <p>You need to select the right values for flex-shrink so that the total sizes of the items match the ones for the brown and green bars and nothing appears above the red bar.</p>
5 <p>You need to select the right values for flex-shrink so that the total sizes of the items match the ones for the brown and green bars and nothing appears above the red bar.</p>
6 <p>The red bar is used to display the negative space size that is distributed when shrinking the flex items.</p>
6 <p>The red bar is used to display the negative space size that is distributed when shrinking the flex items.</p>
7 <p>You will recognize the basic sizes of the items and flex container sizes from the code.</p>
7 <p>You will recognize the basic sizes of the items and flex container sizes from the code.</p>
8 <p>Hint: to achieve the simplest solution, you need factors that are integers of no more than 5.</p>
8 <p>Hint: to achieve the simplest solution, you need factors that are integers of no more than 5.</p>