fit-content()
Limited availability
The fit-content()
CSS function, used outside of a grid layout property, clamps a length between min-content
and max-content
.
Learning resources on MDN
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature