The CSS `sign()` function returns `1`, `-1`, or `0` based on whether a math expression is positive, negative, or zero. It enables conditional styling logic in pure CSS without JavaScript — for example, toggling tooltip direction, switching colors, or rotating elements based on a variable's sign. Combined with `clamp()`, it can
Sort:
