CSS: free course
Style your pages: colours, fonts, spacing, the box model, Flexbox, Grid and mobile-friendly layouts.
Start lesson 1 Open the interactive course Printable course notes
Lessons
- 1 CSS introduction: what it is, why we need it, who uses it and how it works
- 2 Selectors and colours: targeting exactly the right elements and colouring them well
- 3 Fonts and text styling
- 4 CSS units: px, %, em, rem, vw, vh and ch
- 5 Backgrounds, borders, rounded corners and shadows
- 6 The box model: content, padding, border, margin and box-sizing
- 7 display, visibility and overflow
- 8 Pseudo-classes and pseudo-elements (:hover, ::before)
- 9 The cascade, specificity and inheritance
- 10 Debugging CSS with browser DevTools: find and fix any layout problem
- 11 Organising CSS for real projects: naming (BEM), file structure, reuse and performance
- 12 Flexbox layout: rows, columns, alignment, wrapping and real layouts
- 13 Responsive design: one website for phones, tablets and computers
- 14 CSS Grid layout: rows and columns, areas, auto-fit galleries and full page layouts
- 15 Positioning and z-index: relative, absolute, fixed, sticky and stacking
- 16 Transforms, filters and object-fit
- 17 Transitions and animations: smooth hover effects, keyframes and motion done right
- 18 Styling forms and buttons: inputs, focus states, errors and mobile-friendly forms
- 19 CSS variables (custom properties) and dark mode: themes that are easy to change
- 20 CSS frameworks: Bootstrap and Tailwind CSS, when to use them and how they work
- 21 Project: a complete responsive business page