Build, test, explain and audit professional CSS from foundations to specifications. Includes lesson practice, module checkpoints and linked portfolio projects; prerequisite review is additional. See the companion course guide.
Learning outcomes
Earn a cryptographically verifiable Certificate of Completion to showcase on LinkedIn and your resume upon finishing all module lessons and assessments.
Connect a stylesheet and diagnose a rule that does not apply. Practice: Style a second profile; deliberately break a declaration, then repair it. Evidence: Show the repaired rule in DevTools and identify which declaration was ignored.
Target intended nodes without leaking styles to unrelated content. Practice: Style a navigation list with a class, attribute selector, child combinator and focus state; add an unrelated list. Evidence: Record matched and unmatched nodes and the keyboard focus result.
Predict winning declarations and inherited values. Practice: Create two competing color rules, then compare source order, specificity and an inherited color. Evidence: Write the predicted winner before inspecting computed style; explain any discrepancy.
Choose lengths with an explicit sizing reference. Practice: Compare rem, percentages and clamp() in a narrow and wide container. Evidence: Record computed sizes, reference dimensions and why they change.
Select readable foreground/background pairs and explain color mixing. Practice: Build light and dark swatches; test contrast and retain a simple fallback for a modern color function. Evidence: Record actual foreground/background pairs and contrast for ordinary text; note untested states.
Predict the border box and prevent unintended overflow. Practice: Compare content-box and border-box cards with padding and long text. Evidence: Measure both rectangles and identify the cause of overflow.
Compose a readable article with a flexible measure. Practice: Restyle a paragraph using a fallback font, line-height and long-token wrapping. Evidence: Compare narrow and wide line wrapping; check that enlarged text stays visible.
Compose decoration independently of essential information. Practice: Create a card with two background layers and an outline; remove the decorative gradient. Evidence: Confirm text remains readable and keyboard focus remains identifiable.
Explain how block, inline and float boxes participate in flow. Practice: Contain a float with flow-root and compare the following box with and without containment. Evidence: Record container height and following-element position for both versions.
Diagnose containing blocks, stacking and overlays. Practice: Build a positioned badge and a sticky header; test a competing stacking context. Evidence: Identify containing block and stacking context; verify focused controls remain visible.
Compose flexible rows and explain shrinking and alignment. Practice: Build a toolbar with wrapping, an end action and a long label. Evidence: Measure the wrapped line and Tab order; explain the minimum-size constraint.
Place content in explicit and implicit tracks and compose with flex. Practice: Build a named-area layout with flexible columns and a nested toolbar. Evidence: Record track widths and item positions after changing available width.
Design a flexible baseline and conditional enhancements. Practice: Adapt a catalog card to viewport and container width without duplicating content. Evidence: Test 320/768/1280px and a narrow container in a wide viewport; record overflow and fallback.
Preserve meaning and alignment in LTR and RTL. Practice: Build a bilingual card with logical spacing and an isolated mixed-direction identifier. Evidence: Compare inline-start border, source order and identifier display in both directions.
Style native controls while preserving states and semantics. Practice: Repair a registration form with visible labels, invalid input state and keyboard focus. Evidence: Test empty and valid fictional input, Tab navigation and forced colors; submit no real data.
Separate visual motion from layout and retain a static state. Practice: Compare a transform and a layout change; make an optional status animation respect reduced motion. Evidence: Record sibling geometry and the final status with motion enabled and reduced.
Design inherited semantic tokens and safe fallbacks. Practice: Create surface and ink tokens, override them for a dark theme and test a missing token. Evidence: Record resolved colors for both themes and explain missing versus invalid substitution.
Use relational and logical selectors with deliberate specificity. Practice: Compare :where(), :is() and :has() on a card with optional content. Evidence: Record winning selectors before and after DOM mutation, plus usable fallback.
Reason about layer order, scope and value resolution. Practice: Create base and component layers and a nested scope boundary; compare an important declaration. Evidence: Explain winner using precedence before specificity; record scope and inheritance results.
Interpret value grammar and choose compatible calculations. Practice: Predict a clamp or round result at two inputs and keep a compatible fallback. Evidence: Record syntax support separately from resolved size; include one invalid-input case.
Distinguish content contributions and definite sizing constraints. Practice: Compare min-content, max-content and fit-content with a long token; change parent size. Evidence: Measure width bounds and percentage behavior against definite and indefinite heights.
Explain free-space distribution and constraints with numeric evidence. Practice: Predict two flex item widths with a cap, then compare fractional grid tracks with a minimum. Evidence: Measure redistribution and explain the constraint that changed the initial allocation.
Distinguish requested font features from actual rendering. Practice: Define a fallback stack and font display strategy, then examine line metrics before and after a font change. Evidence: Record computed requests, actual loaded faces if available and line geometry; do not infer loading from font-family.
Select table, column or paged layout according to content flow. Practice: Compare fixed table columns, a forced column break and a print-specific control rule. Evidence: Record widths, fragment positions and print preview; distinguish print emulation from pagination.
Separate paint effects, hit testing and layout exclusions. Practice: Compare a clipped image and alpha/luminance masks, then change float shape without resizing its box. Evidence: Record visible pixels, hit-test behavior and unchanged box size where applicable.
Observe scroll offsets and anchor geometry without confusing the APIs. Practice: Build a scroll snap region and an anchored note with absolute fallback. Evidence: Measure scroll offsets and note movement; check fallback and keyboard access.
Make optional timeline and view effects independent of state updates. Practice: Test a scroll indicator and a same-document state change with enhancement disabled. Evidence: Record progress at three offsets and final state under reduced motion; leave performance claims to traces.
Document component ownership, theme tokens and layer contracts. Practice: Organize a card and button in token/component layers with a targeted reset. Evidence: Demonstrate both themes, unrelated component isolation and keyboard focus.
Audit a task across focus, reflow and user preferences. Practice: Repair a narrow panel with a clipped label or hidden focus indicator. Evidence: Record 320px reflow, text spacing, Tab order, forced colors and remaining manual checks.
Separate parsed rules, resolved style, geometry and lifecycle events. Practice: Insert and delete a fixed local rule, compare box geometry and record a canceled transition. Evidence: Capture rule counts, measured rectangle, final state and event; label unsupported APIs.
Investigate actual rendering costs and use defensive theme inputs. Practice: Compare batched geometry operations and reserve illustration space; use a fixed theme allowlist. Evidence: Save before/after geometry and trace if available; reject unknown keys and avoid claims of measured speed without a trace.
Research feature maturity, test syntax and keep a usable fallback. Practice: Pick one experimental feature and document its draft, local support result and stable baseline. Evidence: Record specification URL, date, browser version and observed behavior; identify untested engines.
Integrate responsive architecture, international components, motion and auditing. Practice: Use the capstone projects to build and audit a local site, then perform an independent transfer task. Evidence: Submit source, viewport and keyboard evidence, RTL/theme checks, motion fallback and before/after audit findings.