fit-content()

The fit-content() function combines the max() and min() functions in a single formula to calculate an element’s size

.element { grid-template-columns: 1fr 1fr fit-content(200px); }
Continue Reading
Back to Top ⌃