View Single Post
Old 11-27-2019, 04:23 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
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.
JSWolf is offline   Reply With Quote