HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

font-size

Description

The font-size property for CSS 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

1 · absolute-size

2 · length

3 · percentage

4 · relative-size

5 · JS