For each task create separate classes in style.css and apply them to the correct tags.
📌 File structure: index.html + style.css
💡 Key rule: display: flex is always written on the parent, not on the child
element.
Four identical blocks are evenly distributed across the full width of the container.
px for all sizes.Three blocks are stacked one below another and are centered horizontally within the container.
Three blocks are stacked one below another. The first touches the top edge, the second is in the middle, the third touches the bottom edge.
px for all element sizes.Three blocks are placed at the bottom edge of the container.
px for all sizes.Four blocks are placed at the bottom edge of the container and evenly spaced.
px for all sizes.One tall block is on the left. On the right — two blocks stacked one below another. The top one touches the top edge, the bottom one — the bottom edge.
The container is made of two parts. On the left there are two blocks — one on top, one below. On the right there is one block, placed exactly in the center.
A card sits in the center of a large container. Inside the card three blocks are stacked one below another. The top one touches the top edge of the card, the bottom one — the bottom edge, and all blocks are centered horizontally.
Repeat the layout of the blocks.
px for all sizes.
Important:
Each class is written separately in style.css.
Use HTML and CSS only.
Practice the properties:
display: flex,
flex-direction,
justify-content,
align-items.