The max-inline-size property sets the maximum size of an element on the inline axis — equivalent to max-width in horizontal writing modes or max-height in vertical writing modes, depending on writing-mode..readable {
max-inline-size: 65ch;
}.fluid-cap {
max-inline-size: min(80ch, 90%);
}min:0max:9999step:1units:% | px | em | rem | vw | vhnoneNo maximum (default value).min-contentMinimum content size on the inline axis.max-contentMaximum content size on the inline axis.fit-contentShrinks to content size on the inline axis, clamped between min-content and max-content.fit-content()fit-content(<length-percentage>) — constrains size on the inline axis.calc()Computes a value from a math expression.CSS Logical Properties and Values Level 1Editor's Draft<length-percentage>W3CMDNCSSShow all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationvalue typessourcesvisual demonstrationpreviousnext