Quote:
Originally Posted by enuddleyarbl
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.