round(), mod(), and rem()

Widely Available (since 2026-11-17)

The round(), mod(), and rem() CSS functions compute rounded values and the remainder after division.

Browser support

  • Chrome 125 Released on 2024-05-14
  • Chrome Android 125 Released on 2024-05-14
  • Edge 125 Released on 2024-05-17
  • Firefox 118 Released on 2023-09-26
  • Firefox for Android 118 Released on 2023-09-26
  • Safari 17.2 Released on 2023-12-11
  • Safari on iOS 17.2 Released on 2023-12-11