Rosa’s garden website has its pages and its colors, but its lines still run the full width of the window, and its photo sits at its own size. Rosa coordinates the volunteers of the Elm Street Community Garden, and she wants the whole site to look as though it belongs together. In this course, you’ll give it a real design.
If you’ve ever nudged a margin or a width until a page looked right, this course gives you the model behind it. You’ll read every element as a box in DevTools, and ask the box diagram why a gap appears before you change a value. You’ll learn how to:
- Control the size and spacing of every box, with
border-box, collapsing margins, and a column centered by auto margins. - Keep photos and long email addresses inside their boxes, even on a phone.
- Set readable typography, with font stacks, a self-hosted web font, sizes in
rem, and lines of a readable length. - Give a site a consistent visual design from a well-organized stylesheet, with custom properties and cascade layers.
Each section mixes text lessons and short videos with exercises you write in the browser, where automated tests check your CSS. In the project, you turn the garden’s events into cards with rounded borders and a soft shadow, and give the plots table room in its cells. Then you sort the stylesheet into four layers, explain your design to the AI mentor, and take a quiz.
This course is for programmers who know JavaScript basics, or the equivalent in another language. You should be able to write CSS rules in a linked stylesheet, size text in rem, use custom properties, and find rules in DevTools’ Styles pane. You’ll need a current Chrome or Edge and an editor with a live preview. It’s the third of seven courses on the HTML and CSS Foundations path. Starting here? The first lesson gives you the garden’s files.
What’s Included:
- 33 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 9 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: