Both em
and percentage
are defined in relation to other elements or properties.
For example, with text-indent
, it is related to the width of the paragraph, while with font size, it is related to the browser's default size.
The question arises - why do both em
and percentage
exist if they serve the same purpose?
Is there documentation available regarding what each element is relative to (as shown in the examples)? How can one determine what their values are relative to?