Amazon Guidelines
Guidelines for self created
Guidelines for self created
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
8.3.2 Option 2: Using Different CSS Files<br />
Publishing on Kindle: <strong>Guidelines</strong> for Publishers<br />
Media queries can specify different CSS for Mobi and KF8 formats in different CSS files. In the example<br />
below, the Mobi and KF8 formats utilize different CSS style sheets and the common CSS styles apply to<br />
all media.<br />
Example:<br />
<br />
<br />
<br />
8.3.3 Option 3: Using Style tags<br />
Media queries can specify different CSS for Mobi and KF8 formats directly using tags.<br />
Example:<br />
<br />
<br />
<br />
8.3.4 Option 4: Using @import<br />
Media queries can specify different CSS for Mobi and KF8 formats directly using @import to include<br />
different CSS files.<br />
Example:<br />
@import<br />
@import url(common.css);<br />
@import url(kf8.css) amzn-kf8;<br />
@import url(mobi7.css) amzn-mobi;<br />
8.4 Using the display:none Property with Media Queries<br />
To specify different CSS for the content in Mobi 7 and KF8 format, use the display:none property with<br />
media queries. Support for the display:none property in the Mobi 7 format is available in Kindlegen 2.4<br />
and later versions.<br />
Example:<br />
.defaultcontent<br />
{ display: block; }<br />
.mobicontent<br />
{ display: none; }<br />
@media amzn-mobi<br />
{<br />
.defaultcontent<br />
{ display: none; }<br />
}<br />
.mobicontent<br />
{ display: block; }<br />
Kindle Publishing <strong>Guidelines</strong> <strong>Amazon</strong>.com 41