CSS, Web, Web Development, Layout.
know how they are calculated, I suggest you spend some time reading the following tutorials: Basic use of the flex property in Flexbox layouts Calculation in Flexbox: Expand Flex projects by scaling factor ratios Calculation in Flexbox: Scaling the contraction Flex item by contraction factor