Practical guide to CSS relative units: em scales with the parent’s font size for proportional text/spacing; rem scales to the root (HTML) for consistent, app‑wide sizing; percentages size elements by parent dimensions for flexible, responsive layouts. Includes examples and best practices: set global type in rem, use % for layout, avoid mixing units, and test across browsers/devices.
Guide to CSS viewport units—vw, vh, vmin, vmax—explaining how they scale with the browser window to enable responsive layouts. Defines each unit and shows practical uses: full-width/height navbars, fluid typography tied to viewport width, and preserving video aspect ratios. Offers tips to use sparingly, pair with media queries, and test across devices.
