CSS Complete Course
Style and lay out modern websites, from your first rule to cascade layers, Grid and scroll-driven animation.
- Beginner
- 34 lessons
- 16 hours
Style and lay out modern websites, from your first rule to cascade layers, Grid and scroll-driven animation.
Define and use custom properties, scope and inheritance, fallbacks, and theming with tokens.
How every element is a box, how its size is calculated, and margin collapsing.
Animate state changes smoothly with transition, timing functions, and properties that animate cheaply.
border-box versus content-box, width and height, min and max sizes, and the common reset.
Build multi-step animations with @keyframes, control them with animation properties, and respect prefers-reduced-motion.
How display changes layout behaviour, and a first look at flex and grid values.
Move, scale and rotate elements with transforms, the individual transform properties, and transform-origin.
Font families and fallbacks, size, weight, line height, letter spacing and text alignment for readable text.
Handle content that does not fit, truncate text, build scroll-snapping carousels, and control scroll behaviour.
Background colours and images, gradients, borders, radius and box shadows.
Organise CSS into layers so resets, frameworks and components stop fighting over specificity.
Lay out items in a row or column with display: flex, direction, gap and basic alignment.
The parent selector :has(), and :is() and :where() for shorter selectors with controlled specificity.
Descendant, child and sibling combinators, and selecting by attribute value.