1.

What Is The Percentage Value In 'font-size' Relative To?

Answer»

It is RELATIVE to the parent element's font-size. For example, if the style SHEET says:

H1 {font-size: 20pt;}
SUP {font-size: 80%;}

...then a <SUP> INSIDE an <H1> will have a font-size of 80% TIMES 20pt, or 16pt.

It is relative to the parent element's font-size. For example, if the style sheet says:

H1 {font-size: 20pt;}
SUP {font-size: 80%;}

...then a <SUP> inside an <H1> will have a font-size of 80% times 20pt, or 16pt.



Discussion

No Comment Found