View Single Post
Old 09-02-2024, 07:48 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,355
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by enuddleyarbl View Post
Maybe I should be using rem instead of em since rem seems to be based on the initial font size.
That is correct but an issue to beware of is that rem is not recognized by quite a few renderers which can lead to some rather strange looking text sizes.

And yes, em will stack (cascade might be a better word). One major publisher used to love setting the body font size to 1.1em in <body> and then using 0.92em in the <p> styles which gave an effective 1.01em font size.

There was also one indie who misused Vellum and ending up with multiple divs with font sizes wrapped around the book title.

<div 1 font size 1.5em>
<div 2 font size 1.5em, effective size 1.5*1.5 or 2.25em>
<div 3 font size 2.5em, effective size 1.5*1.5*2.5 or 5.625em>
<h1 font size 2em, effective size 1.5*1.5*2.5*2 or 11.25em>

The 3 word title for that book took just over a page to display. Oddly when I complained about it, the response was that I was the first person who had complained but that when the ebook was opened, what I saw was what they saw.
DNSB is offline   Reply With Quote