styleditor.net styleditor.net styleditor.net styleditor.net English 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

The CSS Propertie max-height

המאפיין max-height קובע את הגובה המקסימלי של תיבת האלמנט. הגובה בפועל לא יחרוג מערך זה. אחוזים מתייחסים לגובה ה-containing block (אם מוגדר).
.panel { max-height: 400px; } .viewport-capped { max-height: calc(100vh - 4rem); }
פחות:0 יותר:9999 צעד:1 יחידות:% | px | em | rem | vw | vh noneאין גובה מקסימלי (ערך ברירת המחדל).min-contentתכווץ את התיבה לגובה התוכן המינימלי האפשרי.max-contentהשתמש בגובה התוכן המקסימלי.fit-contentערך פונקציה: שילוב של min-content ו-max-content בהתחשב במקום הזמין. fit-content()fit-content(<length-percentage>) — מגביל את הגובה לפי האורך הנתון ובמסגרת אילוצי תוכן.calc()מחשב ערך מתוך ביטוי מתמטי. CSS Box Sizing Module Level 3 Editor's Draft <length-percentage> W3CMDN
CSS Show all code ערוך CSS און-ליין התוסף שזוכר עבורך מאות פריטי CSS כל פרופרטי CSS — בהדגמה חיה מקור הייחוס הדו-לשוני ל-CSS
הגדרהדוגמאותתחבירמודולמפרטסוגי ערכיםמקורות מידעהדגמה חזותית