Skip to Content
Skip to content
236 results
HTML and CSS
Style Form Errors Users Can Actually Notice Level: Intermediate

Build and test a local email validation flow that explains errors, preserves the typed value and clears stale error states after correction.

HTML and CSS
CSS Variables for Brand Colors You Change Once Level: Intermediate

Migrate a button to shared brand tokens, override one section, and check hover, keyboard focus and fallback behaviour in a complete local example.

HTML and CSS
Fix a Container Query That Measures the Wrong Ancestor Level: Advanced

Reproduce a nested-container breakpoint failure, select the intended named ancestor, and verify the repair at a fixed viewport and at its boundary.

HTML and CSS
Cascade Layers (@layer) on an Existing Stylesheet Level: Advanced

Put an old stylesheet in the first layer so your new rules win without touching the old file or raising specificity.

HTML and CSS
prefers-reduced-motion Without Killing Useful Motion Level: Advanced

Keep spinners and fades, replace slides and smooth scrolling, and check both settings in Chrome.

HTML and CSS
Stop Layout Shift From Web Fonts Level: Advanced

Compute size-adjust and the vertical overrides from the font files, build the fallback face, and measure the layout shift before and after.

HTML and CSS
Dark Mode With prefers-color-scheme and One Token File Level: Advanced

Use one token file with light-dark(), add a saved toggle that does not flash, and check the colours in both themes.

HTML and CSS
CSS Custom Properties for Theming a Multi-Brand Site Level: Advanced

Switch brands with a data attribute, and avoid the derived-token trap that freezes hover colours on the wrong value.

HTML and CSS
Find Unused CSS Before It Bloats Production Level: Advanced

Record coverage in Chrome DevTools, test the states that hide rules, and remove dead CSS in small, reversible steps.