---
id: "fit-content-function"
kind: "web-feature"
canonical: "https://timetostable.com/feature/fit-content-function"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# fit-content() (`fit-content-function`)

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

- **Group**: Layout
- **Baseline**: Limited Availability
- **Specification**: https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content
- **Constituent BCD keys**: 12

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |


