styleditor.net styleditor.net styleditor.net styleditor.net עברית accent-coloralignalignment-baselineallanchoranimationappearanceaspect-ratiobackdrop-filterbackface-visibilitybackgroundbaselineblock-sizeborderbottomboxbreakcaption-sidecaretclearclipcolorcolumncolumnscontaincontainercontentcornercountercursorcxcyddirectiondisplaydominant-baselinedynamic-range-limitempty-cellsfield-sizingfillfilterflexfloatfloodfontforced-color-adjustgapgridheighthyphenatehyphensimageime-modeinitial-letterinline-sizeinsetinteractivityinterestinterpolate-sizeisolationjustifyleftletter-spacinglighting-colorlinelistmarginmarkermaskmathmaxmax-block-sizemax-heightmax-inline-sizemax-widthminmix-blend-modeobjectoffsetopacityorderorphansoutlineoverflowoverlayoverscrollpaddingpagepaint-orderperspectiveplacepointer-eventspositionprint-color-adjustquotesrreadingresizerightrotaterowrubyrulerxryscalescrollscrollbarshapespeakstopstroketab-sizetable-layouttexttimelinetoptouch-actiontransformtransitiontranslatetrigger-scopeunicode-bidiuser-selectvector-effectvertical-alignviewvisibilitywhitewidowswidthwill-changewordwriting-modexyz-indexzoom

max-height CSS Property

The max-height property sets the maximum height of an element's box. The actual height will not exceed this value. Percentages refer to the containing block's height (if defined). .panel { max-height: 400px; } .viewport-capped { max-height: calc(100vh - 4rem); } min:0 max:9999 step:1 units:% | px | em | rem | vw | vh noneNo maximum height (default value).min-contentShrink the box to the smallest possible content height.max-contentUse the largest content height.fit-contentFunction value: combines min-content and max-content given the available space. fit-content()fit-content(<length-percentage>) — constrains height by the given length within content constraints.calc()Computes a value from a math expression. CSS Box Sizing Module Level 3 Editor's Draft <length-percentage> W3CMDN CSS Show all code Edit CSS online The plugin that remembers hundreds of CSS items for you Every CSS property — in a live demonstration The bilingual CSS reference
definitionexamplessyntaxmodulespecificationvalue typessourcesvisual demonstration