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.
Three blocks stand in a row. Estimate the parent's size by eye:
red, dimensions in px, add display: flex#e74c3c, dimensions in %#3498db, dimensions in %#2ecc71, dimensions in %#2c3e50, dimensions in %flex-direction: row is the default value — no need to write itThree blocks stand in a column. Estimate the parent's size by eye:
green, dimensions in px#f39c12, dimensions in %#e74c3c, dimensions in %#1abc9c, dimensions in %#8e44ad, dimensions in %The block is aligned to the center horizontally. Estimate the sizes by eye:
#2d3436, dimensions in px#fdcb6e, dimensions in %The block is aligned to the right edge. Estimate the sizes by eye:
#00b894, dimensions in px#d63031, dimensions in %The block is aligned to the vertical center. Estimate the sizes by eye:
#6c5ce7, dimensions in px#fd79a8, dimensions in %The block is aligned to the bottom edge. Estimate the sizes by eye:
#0984e3, dimensions in px#ffeaa7, dimensions in %The block is placed exactly in the center both horizontally and vertically. Estimate the sizes by eye:
#e17055, dimensions in px#74b9ff, dimensions in %Three blocks — the outer ones are pressed to the edges, the middle one is in between. All are centered vertically. Estimate the sizes by eye:
#2c3e50, dimensions in px#e74c3c, dimensions in %#f1c40f, dimensions in %#2ecc71, dimensions in %A column of two blocks is aligned to the bottom-right corner. Estimate the sizes by eye:
#6c5ce7, dimensions in px#fd79a8, dimensions in %#00cec9, dimensions in %Two flex containers are nested inside one. Estimate the sizes by eye:
#dfe6e9, dimensions in px, display: flex, justify-content: space-between#b2bec3, width in %, itself a flex container: flex-direction: column, justify-content: space-between#e74c3c, dimensions in %#3498db, dimensions in %#2d3436, width in %, itself a flex container: justify-content: center, align-items: center#fdcb6e, dimensions in %
📌 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.