This thread seems like an appropriate place to mention that media queries are not well supported in the Kindle world.
There are three main reflowable e-book formats currently in use by Amazon: MOBI7, KF8 (azw3), and KFX. KF8 is very similar to EPUB2 in its capabilities, MOBI7 is based on pre-CSS HTML, and KFX is not based on HTML.
The oldest Kindle devices (2007-2010) only support MOBI7 and the newest apps and devices (2015-now) have books delivered to them by Amazon in KFX format. KF8 is used by intermediate age devices and also by newer devices when books are USB sideloaded by the user.
Of these formats only KF8 supports media queries. They are stripped out in the other two formats during conversion by kindlegen and kfxgen.
|