Menu Samaritan's Purse

FONT-SIZE

The font-size property indicates the desired height of glyphs from the font.

SYNTAX

CSS

font-size: value;

JS

object.style.fontSize = "value";

VALUES

<'font-size'> = <absolute-size> | <relative-size> | <length-percentage>
<absolute-size> = [ xx-small | x-small | small | medium | large | x-large | xx-large ]
<relative-size> = [ larger | smaller ]
<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

INITIAL

medium

EXAMPLES

ABSOLUTE-SIZE

LENGTH

PERCENTAGE

RELATIVE-SIZE

JS

INTERNAL

font

font-family

font-stretch

font-style

font-variant

font-weight

line-height

EXTERNAL

World Wide Web Consortium (W3C)