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-width CSS Property

The max-width property sets the maximum width of an element's box. The actual width will not exceed this value. Percentages refer to the containing block's width. .limited { max-width: 600px; } .fluid { width: 100%; max-width: min(80ch, 90vw); } min:0 max:9999 step:1 units:% | px | em | rem | vw | vh noneNo maximum width (default value).min-contentShrink the box to the smallest possible content width.max-contentUse the largest content width (without wrapping).fit-contentFunction value: combines min-content and max-content given the available space. fit-content()fit-content(<length-percentage>) — constrains width by the given length within content constraints.calc()Computes a value from a math expression, e.g. calc(100% - 2rem). 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