MATERIAL FOR YOUR STEP 6 PAGE
Everything inside the gray-blue box below is what you rewrite, in your own words, onto your step6.html page.
Same HTML, different CSS
Take one HTML file — a header, a main holding two sections and an aside, a footer — and it can render as a single stacked column or as a two-column layout, purely by changing the CSS. The structure stays put; the styling decides how it looks.
Flex works in one direction
display: flex; turns an element into a flex container, and its children line up in a row by default. Flex thinks in one direction at a time. To place a column of sections next to the aside, you bundle the two sections in a wrapper div so Flex sees two children: the wrapper and the aside.
Grid works in rows and columns at once
display: grid; plus grid-template-columns defines the columns directly. We write these in percentages first — grid-template-columns: 70% 30%; makes a wide column and a narrow one. Each value in the list becomes the next column, left to right, separated by spaces (no commas). Grid places main’s children directly, so it needs no wrapper div.
Sizing the columns
Columns can be sized several ways: % (a share of the container), fr (a share of the leftover space), px (a fixed width that never changes), and auto (sized by the content). Grid sizes the slots from the container; Flex sizes the items from themselves.