CSS: Percentage Value
%
is percentage.
Example:
div {width:5%}
Percentage is not technically considered a “length unit”.
Meaning of percent value is dependent on the specific property.
[see HTML: the Root Element]
💡 TIP: don't use percentage value, because its meanings is complex.
Use
vw
, vh
, vmin
, vmax
instead.
back to CSS: Length Units