Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Flex item sizing worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1.item { flex-basis: 300px; } | AAllows the item to grow at twice the rate of items with a factor of 1. | |
| 2.item { flex-grow: 2; } | BSpecifies a starting main size of 300 pixels for the flex item. | |
| 3Ensures a flex item maintains its size and never shrinks down. | C.item { flex-grow: 1; } | |
| 4Sets the item to fill space relative to others dynamically. | DUsing a pixel unit on a property that requires a unitless proportion factor. | |
| 5.item { flex-basis: 40; } | EMissing unit type (such as px or %) for a numerical flex-basis value. | |
| 6.item { flex-grow: 10px; } | F.item { flex-shrink: 0; } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
flex-basis — Sets the initial main size of a flex item before free space is distributed according to flex factors..card {
flex-basis: 250px;
}.sidebar {
flex-grow: 1;
}.box {
flex-shrink: 0;
}.item {
flex-basis: auto;
}.panel {
flex-grow: 2;
}