Modern CSS can now do what used to take JavaScript: style a parent from its children, size components by their container, anchor tooltips, animate on scroll, transition to height auto. Each lab below explains one feature with original live demos, copyable code, current browser support and the fallback to ship today.

Want these techniques in finished components? Browse our free UI components or the free CSS tools.