03.04.2012 Views

Amazon Guidelines

Guidelines for self created

Guidelines for self created

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Publishing on Kindle: <strong>Guidelines</strong> for Publishers<br />

CSS CSS Styles Applied to Mobi CSS Styles Applied to KF8<br />

bold;<br />

font-weight:<br />

font-weight: bold;<br />

padding-right: bold;<br />

padding-right:<br />

.2em;<br />

padding-right: 0; .2em;<br />

}<br />

)<br />

}<br />

@media amzn-mobi<br />

{<br />

.firstletter {<br />

float: 0;<br />

font-size: 3em;<br />

line-height: 0;<br />

font-weight:<br />

bold;<br />

padding-right: 0;<br />

}<br />

}<br />

8.3 Submitting a Media Query<br />

There are four options for submitting media queries:<br />

• One CSS file;<br />

• Different CSS files;<br />

• Style tags; and<br />

• @import.<br />

8.3.1 Option 1: Using One CSS File.<br />

Media queries can specify different CSS for Mobi and KF8 formats in the same CSS file. In the example<br />

below, a different .class1 class is specified for the Mobi format than for the other formats in the same<br />

CSS file.<br />

Example:<br />

.class1<br />

{<br />

font-style: italic;<br />

font-size:2em;<br />

}<br />

@media amzn-mobi<br />

{<br />

.class1<br />

{<br />

font-size:3em;<br />

font-weight: bold;<br />

}<br />

}<br />

Kindle Publishing <strong>Guidelines</strong> <strong>Amazon</strong>.com 40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!