HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>In the<a>previous Flexbox chapter</a>we were introduced to the basic concepts of this layout method, and we thoroughly explored how flex items are aligned. This chapter will be dedicated to learning how to control the sizes of flex items.</p>
1 <p>In the<a>previous Flexbox chapter</a>we were introduced to the basic concepts of this layout method, and we thoroughly explored how flex items are aligned. This chapter will be dedicated to learning how to control the sizes of flex items.</p>
2 <p>Let’s start with a simple question. How does our familiar block model work inside a flex container? Are there any differences in the behavior of the familiar properties?</p>
2 <p>Let’s start with a simple question. How does our familiar block model work inside a flex container? Are there any differences in the behavior of the familiar properties?</p>
3 <p>The width, height, and internal margins and frames for flex containers and flex items work just as you would expect them to: the total size of items is determined by these components. This behavior can also be changed using the box-sizing property.</p>
3 <p>The width, height, and internal margins and frames for flex containers and flex items work just as you would expect them to: the total size of items is determined by these components. This behavior can also be changed using the box-sizing property.</p>
4 <p>There are several important differences:</p>
4 <p>There are several important differences:</p>
5 <ul><li>Flex items, in contrast to block elements, are not stretched to the entire width of the container by default.</li>
5 <ul><li>Flex items, in contrast to block elements, are not stretched to the entire width of the container by default.</li>
6 <li>The float property does not apply to flex items.</li>
6 <li>The float property does not apply to flex items.</li>
7 </ul><p>Now let’s work with the properties that we have already learned and make sure that they work in the usual way.</p>
7 </ul><p>Now let’s work with the properties that we have already learned and make sure that they work in the usual way.</p>