Opening this part…
Opening this part…
Part 2 · ≈ 1 h 35 m · 5 sections
How a page gets its look: colour and the three ways to attach CSS, selectors, text styling, the box model, and laying elements out.
Pick a section below. Each opens its own study page with activities.
Your path
Loading your progress…
Open a section to study. About 1 h 35 m total.
How CSS works
What a CSS rule is made of, and the three ways to attach CSS to a page.
Element, class and id selectors, and why class is the workhorse.
Type and the box model
Font family, size, weight, line height and spacing.
Content, padding, border, margin — and why box-sizing matters.
Laying things out
Block and inline, display, position, and a first look at flexbox.
Rate this
Web Application Development · Part 2
From students
What people said
Part 2 · Section 8: Writing a rule, and getting it onto the page
“good session”