CSS

Overview

About CSS

CSS is the language that controls how every web page looks and adapts to the screen in front of it. This course starts with two foundation modules: HTML & Browser Basics covers the semantic markup, the DOM, and the browser DevTools you need to see what your styles are doing, while CSS Fundamentals covers selectors, the cascade, specificity, and inheritance, so you can predict which rule wins instead of guessing.

Box Model & Display explains how every element becomes a box with content, padding, border, and margin, and how display values change the way it flows. Typography & Colors covers fonts, spacing, color formats, and backgrounds, and Positioning & Stacking covers relative, absolute, fixed, and sticky elements along with z-index and stacking contexts.

Flexbox and CSS Grid are the two modern layout systems, and you'll learn when to reach for each one before combining them. Responsive Design then makes those layouts adapt with media queries, fluid units, and a mobile-first approach. Transitions & Animations adds motion through transforms, transitions, and keyframes, with a focus on keeping it smooth and accessible.

Modern CSS covers custom properties, clamp(), container queries, :has(), nesting, and cascade layers. Finally, Architecture & Tooling covers the habits that keep a stylesheet maintainable as it grows: naming methodologies like BEM, preprocessors like Sass, utility-first CSS like Tailwind, plus accessibility and performance.

Content

11 modules
01

HTML & Browser Basics

Semantic HTML, how the browser turns markup into the DOM, and how to use DevTools to inspect and live-edit styles — the starting point for everything in CSS.

Semantic HTML DOM DevTools
02

CSS Fundamentals

Selectors, combinators, pseudo-classes and pseudo-elements, plus the cascade, specificity, and inheritance that decide which rule actually applies.

Selectors Specificity Cascade
03

Box Model & Display

Content, padding, border, and margin, box-sizing, margin collapsing, and how block, inline, and inline-block elements behave.

Box Model box-sizing display
04

Typography & Colors

Font families, web fonts, sizing units, line height and spacing, color formats like HSL, gradients, backgrounds, and building readable, contrast-friendly text.

Web Fonts rem / em HSL & Gradients
05

Positioning & Stacking

Static, relative, absolute, fixed, and sticky positioning, how z-index and stacking contexts really work, and when to use positioning instead of a layout system.

position z-index Sticky
06

Flexbox

One-dimensional layout with flex containers and items: main and cross axes, alignment, wrapping, and the grow, shrink, and basis properties.

Flex Container Alignment flex-grow / shrink
07

CSS Grid

Two-dimensional layout with rows, columns, and areas, including fr units, auto-fit and minmax, subgrid, and how to combine Grid with Flexbox.

Grid Areas fr / minmax Subgrid
08

Responsive Design

Mobile-first thinking, the viewport meta tag, media queries and breakpoints, fluid units, responsive images, and testing across screen sizes.

Media Queries Mobile-First Responsive Images
09

Transitions & Animations

Transforms, transitions, easing, and keyframe animations, how to keep motion performant, and respecting reduced-motion preferences.

Transforms @keyframes Reduced Motion
10

Modern CSS

Custom properties, calc() and clamp(), container queries, the :has() selector, native nesting, cascade layers, and dark mode with color-scheme.

Custom Properties Container Queries :has()
11

Architecture & Tooling

Keeping CSS maintainable with BEM and design tokens, preprocessors like Sass, utility-first frameworks like Tailwind, plus accessibility and performance best practices.

BEM Sass Tailwind

What You Can Do After This Course

By the end of the curriculum you'll have built several real, responsive pages and covered the full path from selectors and the box model to modern, maintainable stylesheets. Concretely, you'll be able to:

Predict how your styles apply — read selectors, specificity, and the cascade well enough to fix conflicts without resorting to !important.

Lay out any page — choose between Flexbox, Grid, and positioning, and combine them to build navbars, cards, dashboards, and full-page layouts.

Design responsive interfaces — build mobile-first pages that adapt with media queries, fluid type, and container queries.

Add polish with motion — create smooth transitions and keyframe animations that perform well and respect user preferences.

Use modern CSS features — apply custom properties, :has(), nesting, and cascade layers to write less code and ship themeable designs.

Keep stylesheets maintainable — organize code with BEM, Sass, or Tailwind, and know what each approach trades off.