Web platform features explorer

fit-content()

The fit-content() CSS function, used outside of a grid layout property, clamps a length between min-content and max-content.

Status

Limited availability

MDN documentation

Browser support

  • Chrome
  • Chrome Android
  • Edge
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS