As I understand it, most browser manufacturers have agreed on 16px for their
default font size.
So, this should be an accurate conversion for percentages:
px %
16 = 100
14 = 87.5
13 = 81.25
12 = 75
10 = 62.5
I assume it's better to stick to a percentage that will yield a round number -
rather than using something like 90% to get 14.4. A browser will just round up
or down to a font size it can display, correct?
As for em, am I correct in saying 1em = 16px?
Does that mean 1.2em is 19.2px (rounded by the browser to 19px - if the default
size is 16)?
default font size.
So, this should be an accurate conversion for percentages:
px %
16 = 100
14 = 87.5
13 = 81.25
12 = 75
10 = 62.5
I assume it's better to stick to a percentage that will yield a round number -
rather than using something like 90% to get 14.4. A browser will just round up
or down to a font size it can display, correct?
As for em, am I correct in saying 1em = 16px?
Does that mean 1.2em is 19.2px (rounded by the browser to 19px - if the default
size is 16)?
Comment