View Single Post
Old 01-24-2018, 12:18 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
font-size in html tag

I'm looking at an epub2. Was created by inDesign and the css looks pretty sensible.

It looks good on screen and converts to AZW3 without issue.

However, it triggers an error in epubcheck for a style in the html tag:

<html xml:lang="en" xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.136rem;">

The body text in css has
font-size: 0.88rem;

So it looks like the print book was set in a smaller font and this html style is hack to bump it back to 1.0.

Is there a way to do this that validates?
(Aside from going through the css file and multiplying each size by the same factor.)

I tried putting the style in the <body> tag, but that had no effect.
AlanHK is offline   Reply With Quote