Learn CSS Online — Free Interactive Course

Free CSS Course · Course overview & lesson outline

Learn CSS Online — Free Interactive Course

Complete CSS for Everyone: 5 chapters of visual explanations and 19 hands-on exercises, from foundations to reliable programs and applied projects.

Learn CSS online with 19 free interactive lessons. Practice CSS selectors, layouts and responsive styling in your browser. Read each explanation, edit the starter code, and try the exercise to check your understanding.

Beginner · 19 lessons · About 3.1 hours. Learn at your own pace.

What you’ll learn

Chapter 1: The Artist's Palette

Painting walls, typography, the Box Model, and soft rounded shadows.

  1. 1. Painting Walls (Colors & Backgrounds)
  2. 2. Typesetting & Lettering (Fonts)
  3. 3. The Picture Frame (The Box Model)
  4. 4. Soft Corners & Shadows

Chapter 2: Modern Layout & Alignment

Elastic Flexbox ribbons, vertical stacks, CSS Grid parcels, and wizard centering.

  1. 5. The Elastic Ribbon (Flexbox)
  2. 6. Direction & Spacing (gap)
  3. 7. The City Grid (CSS Grid)
  4. 8. Centering Anything Like a Wizard

Chapter 3: Polish, Interactivity & Responsiveness

Hover chameleon states, mobile media queries, and modern card styling.

  1. 9. The Chameleon (Hover & Transitions)
  2. 10. Screen Shape-Shifting (Media Queries)
  3. 11. Capstone: Modern Card Component

Chapter 4: The cascade & resilient styling

Specificity, inheritance, custom properties, and predictable sizing.

  1. When two rules compete
  2. One token, many uses
  3. Keep padding inside the width
  4. Type that adapts to the viewport

Chapter 5: Accessible interaction & a final project

Keyboard focus, reduced motion, flexible layouts, and a polished component.

  1. Show keyboard users where they are
  2. Respect reduced-motion preferences
  3. A grid that finds its own columns
  4. Project: a resilient learning panel

Is this course free?

All lessons and coding exercises are free to explore without an account. Progress is saved in this browser. Optional account and Supporter features have separate terms.

Can I learn offline?

Open the course and its language while connected. Wait for “Available offline” before disconnecting. Saved lessons and the editor can be used offline. Some lesson images may still need internet access. Cloud sync and AI require internet access.