CSS · Properties — CSS Text

text-fit

The CSS text-fit property. Initial value: none. Inherited.

Syntax
text-fit: [ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>?

Example

Try it

Notes

Media: visual. Applies to: blockContainerElements. Computed value: specifiedKeywordOrComputedPercentage.

More in this group

hanging-punctuation hyphenate-character hyphenate-limit-chars hyphens line-break tab-size text-align-last text-autospace

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course