CSS

Styling, layout and the cascade.

CSS is taught here in 14 lessons, running from CSS: getting started through to Debugging CSS, resets and browser support. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

TrackFront-end Development
Lessons14
LevelBeginner to intermediate
Reading timeabout 3 hours
PrerequisitesHelpful, but not required: HTML

Lessons

  1. CSS: getting startedHow a stylesheet attaches to HTML, how rules are read, and the cascade that decides which declaration wins.
  2. Selectors and specificityThe selector vocabulary — combinators, attributes, pseudo-classes — plus a reliable way to reason about specificity.
  3. The box modelContent, padding, border and margin — plus collapsing margins and how sizing math really works.
  4. FlexboxOne-dimensional layout done properly: main vs cross axis, alignment, growth factors, and the properties that trip people up.
  5. CSS GridTwo-dimensional layout: tracks, the fr unit, placement by line or area, and responsive grids without media queries.
  6. Responsive designMedia queries, fluid units, and modern container queries — building layouts that adapt instead of breaking.
  7. Typography, fonts and fluid typeFont stacks and web fonts, line-height and measure, text wrapping, and type that scales with clamp instead of breakpoints.
  8. Color, backgrounds and dark modeColor notations including oklch, gradients and background layers, shadows versus borders, and a dark mode built on tokens.
  9. Units, custom properties and calcChoosing between px, em, rem and viewport units, inheriting variables, registering them with @property, and doing arithmetic safely.
  10. Positioning, stacking and overflowStatic through fixed, the containing block, sticky behaviour, z-index and stacking contexts, scroll containers and aspect ratio.
  11. Transitions, transforms and animationWhich properties can transition, timing functions, transform functions and 3D, keyframe animation and reduced motion.
  12. Modern selectors and cascade control:is, :where, :has, nth-child of, native nesting, cascade layers and scoped styles.
  13. CSS architecture, naming and design tokensNaming conventions, component versus utility thinking, two tiers of tokens, file organisation and avoiding specificity wars.
  14. Debugging CSS, resets and browser supportReading DevTools computed styles, hunting overflow and collapsed margins, choosing a reset, and feature queries.

More in Front-end Development

HTML JavaScript TypeScript HTML DOM AJAX JSON Tailwind CSS Bootstrap 5 Foundation Vue.js React Next.js Angular jQuery ECharts Chart.js SVG Font Awesome

FAQ

How long does the CSS course take?
It has 14 lessons, about 3 hours of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for CSS?
Not strictly. It helps to have read HTML first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after CSS?
Continue with JavaScript (14 lessons), the next course in Front-end Development.

Last refreshed 2026-09-18.