CSS - Length Value (Size)
Table of Contents
1 - Introduction
Lengths refer to horizontal or vertical measurements.
2 - Articles Related
3 - Format
The format of a length value is a number (with or without a decimal point) immediately followed by a unit identifier
number unit
where:
- number is positive or negative
- unit is a unit identifier
3.1 - Negative
Some properties allow negative length values, but this may complicate the formatting model and there may be implementation-specific limits. If a negative length value cannot be supported, it should be converted to the nearest value that can be supported.
If a negative length value is set on a property that does not allow negative length values, the declaration is ignored.