Quote:
Originally Posted by Toxaris
For ePUB I would strongly recommend the SVG-wrapper. Probably dtgawood recommended the same. However, SVG is not supported IIRC on Kindle. As far as know all books for Kindle are converted ePUB instead of created from scratch. Perhaps you should take a look at media queries or ask in the Kindle subforum how it will work on a Kindle.
|
Depends on what you mean when you say Kindle.

SVG seems to work reasonably well on KF8-capable Kindle devices. So I use the same code on Kindle, but with a little extra magic CSS:
Code:
@media not amzn-mobi {
.kf8only { display: inline; }
.mobionly { display: none; }
}
@media amzn-mobi {
.kf8only { display: none; }
.mobionly { display: inline; }
}
With that, I can wrap the SVG wrapper in a
<div class="kf8only">, and wrap a copy of the bare image with
<div class="kf8only">.
Thus, the SVG gets shown only on KF8-capable Kindle readers, and really old Kindle hardware just gets a static image, with a slightly less than ideal presentation size. It isn't perfect, but it works well enough, IMO.