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

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.