View Single Post
Old 11-28-2019, 07:11 AM   #9
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,820
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
h1 is 2em by default. 200% would be 4em.
Not at all. I see you didn't test what I wrote; do the try and you'll see that your statement is wrong. A font-size of 200% for h1 is exactly the same as a font-size of 2em.

EDIT: Here you have an epub so your tests will be easier. And here you can also watch an screenshot:

Click image for larger version

Name:	Image1.png
Views:	201
Size:	116.4 KB
ID:	175191

with

Code:
.percent {
   font-size: 400%;
}

.ems {
   font-size: 4em;
}
and

Code:
<h1 class="percent">TITLE in %</h1>

<h1 class="ems">TITLE in ems</h1>
Attached Files
File Type: epub Percentages and ems.epub (2.0 KB, 157 views)

Last edited by RbnJrg; 11-28-2019 at 08:12 AM.
RbnJrg is offline   Reply With Quote