# Description

An ex is a measurement based upon 1/2 the current font size. Fractional values are also allowed.

A length value is formed by an optional + or -, followed by a number, followed by the two-letter unit abbreviation. No spaces are allowed in the value.

1ex is equal to 1/2 the current font size.
2ex is equal to the current font size.

# Examples

This example sets the paragraph font size to 1/2 the current font's size.

    p {
      font-size:1ex;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

# Miscellaneous Information

Defined In: | CSS2.1