Quote:
Originally Posted by RbnJrg
But to set a font-size in percents is exactly the same as setting it in em. That is, if you has for your -for example- "h1" style the following:
Code:
h1 {
font-size: 200%;
}
is the same if you write:
Code:
h1 {
font-size: 2em;
}
A different thing is if you set a margin in percentage or ems; here a percentage means a percentage of the screen size while a margin in "ems" means a margin based on the font-size you are using in the respective style.
|
h1 is 2em by default. 200% would be 4em.