why can't you scale text by percentage of the container it is in?

chrishirst

Well-Known Member
Staff member
Font size is an inheritable property so the relative size of the font in any element is determined by the cascade from the elements first ancestor where a fixed size was specified.
Relative dimensions such as em,ex are determined from the cascade so 1ex is the height of an uppercase 'X' in the font face, family and the inherited size of any given element.

If no fixed font size exists in the cascade the font size that applies to the body element is used to calculate the relative dimensions.
 
Last edited:
Top