styleditor.net styleditor.net styleditor.net styleditor.net עברית accent-coloralignalignment-baselineallanchoranimationappearanceaspect-ratiobackdrop-filterbackface-visibilitybackgroundbaselineblock-sizeborderbottomboxbreakcaption-sidecaretclearclipcolorcolumncolumnscontaincontainercontentcornercountercursorcxcyddirectiondisplaydominant-baselinedynamic-range-limitempty-cellsfield-sizingfillfilterflexfloatfloodfontfont-familyfont-feature-settingsfont-kerningfont-language-overridefont-optical-sizingfont-palettefont-sizefont-size-adjustfont-smoothfont-stretchfont-stylefont-synthesisfont-synthesis-positionfont-synthesis-small-capsfont-synthesis-stylefont-synthesis-weightfont-variantfont-variant-alternatesfont-variant-capsfont-variant-east-asianfont-variant-emojifont-variant-ligaturesfont-variant-numericfont-variant-positionfont-variation-settingsfont-weightforced-color-adjustgapgridheighthyphenatehyphensimageime-modeinitial-letterinline-sizeinsetinteractivityinterestinterpolate-sizeisolationjustifyleftletter-spacinglighting-colorlinelistmarginmarkermaskmathmaxminmix-blend-modeobjectoffsetopacityorderorphansoutlineoverflowoverlayoverscrollpaddingpagepaint-orderperspectiveplacepointer-eventspositionprint-color-adjustquotesrreadingresizerightrotaterowrubyrulerxryscalescrollscrollbarshapespeakstopstroketab-sizetable-layouttexttimelinetoptouch-actiontransformtransitiontranslatetrigger-scopeunicode-bidiuser-selectvector-effectvertical-alignviewvisibilitywhitewidowswidthwill-changewordwriting-modexyz-indexzoom

font-size CSS Property

The font-size property indicates the desired height of glyphs from the font. For scalable fonts, it is a scale factor on the EM unit. Supports absolute/relative size keywords, numeric units, and math for math text. Percentages refer to the parent's font-size. p { font-size: 16px; } h1 { font-size: clamp(1.5rem, 2vw + 1rem, 3rem); } min:0 max:9999 step:1 units:px | em | rem | % | pt | vw | vh xx-small: scale factor 3/5 (extra-extra-small).x-small: scale factor 3/4.small: scale factor 8/9.medium: scale factor 1 (default).large: scale factor 6/5.x-large: scale factor 3/2.xx-large: scale factor 2/1.xxx-large: scale factor 3/1.larger: larger than parent (per table or ratio ~1.2-1.5x).smaller: smaller than parent.mathSpecial math scaling rules for mathematical text (MathML). CSS Fonts Module Level 4 Editor's Draft <length-percentage> W3CMDN CSS css aBcDeF 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