CSS has several units for different units such as width, margin, padding, font-size, border-width, etc. The length indicates by using numerical value followed by length units such as px, dp, em, etc. It does not allow white spaces in between numerical values and length units.
Length units divided as follows:
In relative units, the length value is fixed and it appears the exact size of the element