CSS Math Functions
CSS Math Functions — Advanced CSS math: round(), mod(), rem(), abs(), sign(), and trigonometric functions for computed values. The guide walks through Rounding & Trigonometric. `round(up/down, val, step)` — round to nearest step. `mod(val, step)` — remainder. `rem(val, step)` — remainder (like mod). `abs(val)` — absolute. `sign(val)` — direction. `sin(val)`, `cos(val)`, `tan(val)`, `asin(val)`, `acos(val)`, `atan(val)`. Use trig for: circular layouts, wave patterns, 3D-like effects without JavaScript. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with real CSS you can use as-is. Related guides: CSS Introduction, CSS Selectors, CSS Box Model, CSS Flexbox, CSS Grid. This is one of 68 CSS guides on CSS Reference — see the full list on the guides page. Look up any property mentioned in this guide from the search page or the CSS Reference homepage.