09-03-2014, 12:50 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
|
Basic CSS not working in Kindle iOS App
I have some really simple CSS styles that work fine in the Kindle preview software, and on my actual Kindle Paperwhite, but when I send it to my iPad/iPhone and use the Amazon Kindle App, they don't work.
For example... The CSS: Code:
#copyright p { text-align: center; } Code:
<div id="copyright"> <p>©2014 Author's Name</p> </div> Another example: CSS: Code:
p.author-s-voice { font-style: italic; text-indent: 1.2em; } Code:
<p class="author-s-voice">Lorem ipsum dolor sit amet, consectetur....</p> This seems like really basic styling, why is it being ignored by the Kindle app? |
09-03-2014, 04:15 PM | #2 |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
You'll need to change the default device setting in Kindle Previewer to Kindle for iPhone/iPad. KP will then generate an additional .azk file that you'll need to sideload to your iPhone/iPad via iTunes App sharing.
|
09-05-2014, 06:37 AM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
|
Thanks for your reply. I've heard this before, but what I don't understand is why the Kindle Previewer conversion is any different from Amazon's server conversion. Both produce the same AZK files, don't they?
|
09-05-2014, 07:45 AM | #4 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
You can easily test this with the iTunes file sharing feature. (Select the Kindle app, look for your book and check the file extension.) |
|
09-05-2014, 08:08 AM | #5 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I could be wrong, though. |
|
09-05-2014, 09:05 PM | #6 | ||
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Hitch |
||
09-12-2014, 10:29 AM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
|
Thanks for your help. The book is now for sale (buy it here: http://www.amazon.com/Reflections-Or...dp/B00NE641WU/ ... or not) but if you use the "LOOK INSIDE" feature, you'll see that the formatting is all screwed up -- just like it was when I sent it to iOS via SEND.
As I say, the book is fine in an actual Kindle...! What's going on? |
09-12-2014, 07:30 PM | #8 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
What do you mean, when you say, "the formatting is all screwed up?" What is it you are expecting it to DO? Given that the first 10% is up on Amazon, in the LITB, anyway, can you put up some screenshots of what you're expecting, versus what's displaying in the LITB and on the iOS? Hitch |
|
09-13-2014, 04:14 AM | #9 |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@JohnnyW: Two questions:
1. Did you actually test a Kindle Previewer generated .azk file with the Kindle for iOS app? 2. Did you upload the HTML source files, an ePub or a Kindle Previewer generated .mobi file to KDP? |
09-13-2014, 04:45 AM | #10 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I don't know what he did--I have a suspicion--but his italicized font is not showing up in the LITB or iOS. He italicized TNR. I suspect that this is possibly because he's italicizing with a paragraph STYLE, rather than using the usual italics tags, or even spans, for the text he wishes to be italicized. Also, his centered material is showing up not-centered on both. My first guesstimate would be to wrap all that in spans--see if that helps. We all know how hinky the iPads can be about not-spanned material, whether it's iBooks or "other." I'm not quite sure why his centered material isn't showing up that way, unless the errata is in the HTML/ePUB/MOBI, but the italics...if the book was created with embedded TNR fonts, like you sometimes see with Mac products, it's possible that the italics aren't showing up because the TNR-Italic font isn't embedded. Given that it's also NOT working in iOS, I'm fairly sure it's not just that he used "Send to Kindle," or sideloaded the mobi instead of the .azk. Hitch |
|
09-13-2014, 12:29 PM | #11 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Of course, as you know, some older Kindle for iOS apps only support some kind of enhanced mobi7 and might display text differently. I.e., if someone downloads the book with an older Kindle for iOS app, they might get the mobi7 content. However, that problem, too, can be handled to some extent by using media queries & fallback styles. |
|
09-13-2014, 02:55 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
09-19-2014, 08:08 AM | #13 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
|
Quote:
Unfortunately I don't know if the author uploaded the .mobi or the .epub. I guess that could make a difference? You can see from the "Look Inside" that the information on the copyright page is left aligned, for example (which is one of the examples from the first post). UPDATE: Mercy me! It appears to be working just fine in the Kindle iOS software now. Hurrah! I guess it's just the "Look Inside" that isn't working -- I can live with that. Last edited by JohnnyW; 09-19-2014 at 08:19 AM. |
|
09-19-2014, 09:03 AM | #14 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
09-19-2014, 07:10 PM | #15 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
C'mon, now, I'm not the only one here who knows this!!! "Send to Kindle" creates a KF7 file, not a KF8. !!! Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle iOS app + duplicate collections | Josieb1 | Amazon Kindle | 4 | 05-02-2014 11:34 AM |
Dictionaries not working on iOS 7 - cause app to freeze | holymadness | Marvin | 14 | 03-25-2014 12:26 PM |
Kindle for iOS not supporting all CSS/KF8 features? | Oxford-eBooks | Amazon Kindle | 6 | 01-14-2014 04:33 AM |
Kindle for iOS 4.0 app gets Collections | jswinden | Amazon Kindle | 8 | 09-19-2013 09:17 PM |
Development New basic app working | mrspaceman | enTourage Archive | 8 | 12-12-2010 02:04 AM |