K
Kabuki Armadillo
I guess this is probably a common question here. The difference between
them?
I typed a test page, one using percents, one using ems.
The first page used nothing but ems, the second nothing but percent.
In Firefox 2, 1 em = 100% which is what I expected.
However, using 2 ems was much bigger than 200%.
In IE7, both behaved the same, i.e. everything scaled accordingly.
Question 1: Does the Gecko engine render font sizes differently from the IE
engine? And does anyone know how Opera and Safari behave in this regard?
Also, when it comes to padding, margins, I understand how % works.
However, I'm a little fuzzy on how ems work in terms of spacing.
Supposed I want to ensure a comfortable reading setup of 90 characters per
line leaving a generous margin of 10% (e.g. 9 characters on each side). If
the reader re-sizes the text I want the box to resize so as to keep the 90/9
ratio.
Question 2: Is this doable with ems? How?
Question 3: What is the advantage of ems over percent? i.e. is it related to
spacing and margins, is it related to fine-tuning of text appearance, etc.
M
them?
I typed a test page, one using percents, one using ems.
The first page used nothing but ems, the second nothing but percent.
In Firefox 2, 1 em = 100% which is what I expected.
However, using 2 ems was much bigger than 200%.
In IE7, both behaved the same, i.e. everything scaled accordingly.
Question 1: Does the Gecko engine render font sizes differently from the IE
engine? And does anyone know how Opera and Safari behave in this regard?
Also, when it comes to padding, margins, I understand how % works.
However, I'm a little fuzzy on how ems work in terms of spacing.
Supposed I want to ensure a comfortable reading setup of 90 characters per
line leaving a generous margin of 10% (e.g. 9 characters on each side). If
the reader re-sizes the text I want the box to resize so as to keep the 90/9
ratio.
Question 2: Is this doable with ems? How?
Question 3: What is the advantage of ems over percent? i.e. is it related to
spacing and margins, is it related to fine-tuning of text appearance, etc.
M