length

The length CSS data type that is used to specify distance measurements using relative or absolute units. It consists of an integer or decimal number followed (without whitespace) by a unit abbreviation; the unit may be omitted if the number is zero. Lengths can be used in numerous CSS properties, such as width, height, margin, padding, font-size, and text-shadow.

Syntax



property: length;