← Code

Control how a page is laid out, with boxes, Flexbox, Grid and components that repeat.

Start1. Which rule wins

Rules that combine

Which rule wins, and how to style only the links in a menu.

1Which rule winsNot started
2Style the links in the menuNot started

Boxes

Block and inline, and every element as a box: padding, border and margin.

Layout

Rows with Flexbox, spacing, wrapping to fit any width, and components you copy.

Final challenge: lay out the club page

Lay out the club page from Structure and style a page. Two optional lessons go further: Grid, and a little JavaScript.

10Challenge: lay out the club pageNot started
11Page layout with Grid OptionalNot started
12Make it react OptionalNot started

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)