Quote:
Originally Posted by RbnJrg
On epub2, no (or very poorly). On epub3 you have javascript and with it, you can know a lot of things about the device (or app) where the epub was opened (and the position and size of the elements contained in that ebook) and to adapt the layout accordingly. For example, one old epub3 ereader is Gitden; is deprecated, but even so is quite good. But it has a drawback; you can't set -with the app- the margins of the body text; with javascript you can know that the epub is being opening on Gitden and then set margin by means of css styles (those styles are only applied if the epub was opened under Gitden).
|
But in most cases, you have no need for javascript. As long as this eBook is just a simply formatted novel, don't use any advanced code. The simpler the code the more it's compatible.