For each task create separate classes in style.css and apply them to the correct tags.
📌 File structure: index.html + style.css
Recreate the block. Estimate the parent's size by eye:
#2c3e50, dimensions in px#e74c3c, dimensions in %Recreate the block. Estimate the parent's size by eye:
#8e44ad, dimensions in px#f1c40f, dimensions in %Recreate the nested blocks. Estimate the parent's size by eye:
#16a085, dimensions in px#e67e22, dimensions in %Three child blocks stand in a column and divide the parent's height. Estimate the parent's size by eye:
#2d3436, dimensions in px#e74c3c, dimensions in %#3498db, dimensions in %#2ecc71, dimensions in %The parent depends on the browser window, two children stand in a column. Estimate the values by eye:
#c0392b, width in vw, height in vh#f1c40f, dimensions in %#9b59b6, dimensions in %The parent depends on the browser window, three children stand in a column. Estimate the values by eye:
#6c5ce7, width in vw, height in vh#e17055, dimensions in %#00cec9, dimensions in %#fdcb6e, dimensions in %Parent depends on the window, child depends on the parent. Estimate the values by eye:
#00b894, width in vw, height in vh#fd79a8, dimensions in %Parent depends on the window, child depends on the parent. Estimate the values by eye:
#e17055, width in vw, height in vh#0984e3, dimensions in %Three levels: parent from the window, each child from its own parent. Estimate the values by eye:
#2c3e50, width in vw, height in vh#e74c3c, dimensions in %#f1c40f, dimensions in %% is calculated from its direct parent!Three child blocks stand in a column inside a parent. Estimate the values by eye:
#2c3e50, width in vw, height in vh#e74c3c, dimensions in %#f39c12, dimensions in %#2ecc71, dimensions in %
📌 Important:
Each class is written separately in style.css.
Use HTML and CSS only.
Practice the units:
%,
vw,
vh.