05-04-2012, 10:34 AM | #1 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
Problem with CSS.
Hi,
I have a problem with the CSS I've used in creating MOBI files. Some of the CSS works fine, some does not. Also the different programs that I've used to create the MOBI files behave differently with regards to which CSS works and which does not. The programs I've used are: Kindlegen v.2.4, MobiPocket Creator v.4.2, and html2mobi which is part of MobiPerl v.0.0.43. I've used Kindle Previewer v.2.4 and Calibre v.2.8.27 to view the compiled test files. I'm really not sure how I should be formatting the book if CSS is unavailable. For example the book has some poetry in it, which has different horizontal starting positions for some lines (I.E. some lines of text are much further indented than others). Also there are a few long quotations which need to be formatted in a special paragraph which is, say, 25% narrower that usual. Appendix 11.2 in the AmazonKindlePublishingGuidelines.pdf guide is supposed to show what CSS is supported. But much of the CSS it says is not supported, EG. 'margin', seems to work just fine. All advise would be very welcome. Many thanks. |
05-04-2012, 11:13 AM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Welcome to mobi limitations. Amazon Kindle AZW format (MOBI) does not support CSS at all, nada, zip, none. However, the translation programs generating mobi can convert CSS to the internal form needed by mobi. Thus you will find that some converts and some has nothing to convert to, so gets ignored. Amazon KF8 format, currently only on the fire, does have CSS support.
You will just have to accept the lack of CSS but you can sometimes find work arounds that can do what you want such as adding nonbreaking spaces to force indents, etc. Dale |
05-04-2012, 12:25 PM | #3 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
Thanks Dale.
Is there a guide anywhere for how to do more advanced formatting? All the guides I find on the web seem to be very basic, how to do the command line, page breaks, and such like, rather than the more tricky/sophisticated formatting. |
05-04-2012, 12:30 PM | #4 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
As for how to format without CSS, have a look here and other sections of that page.
In general: use "height" for vertical space above an element, "width" for first line indent, "<blockquote>" for wider left margin (cannot be nested). For poetry I do: Code:
<p width=2em height=1em>“You are old, Father William,” the young man said,</p> <p width=4em height=0em>“And your hair has become very white;</p> <p width=2em height=0em>And yet you incessantly stand on your head—</p> <p width=4em height=0em>Do you think, at your age, it is right?”</p> |
05-04-2012, 01:05 PM | #5 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
Thanks Jellby.
That link is exactly what I needed. Cheers guys. |
05-13-2012, 05:45 AM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Amazon Kindle
|
|
05-13-2012, 11:08 AM | #7 |
Resident Curmudgeon
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-13-2012, 12:49 PM | #8 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I used iTunes to sideload the dual formal KF8 sample from Amazon and also tried loading it via my Kindle library and in both cases it doesn’t show any of the advanced KF8 features on the iPad. |
|
05-18-2012, 01:13 AM | #9 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Amazon Kindle
|
Quote:
I'll of course defer to your experience, since you have tested it and I have not. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS problem, can someone help me ? | Nick_1964 | General Discussions | 6 | 02-07-2012 11:02 AM |
CSS Styles From InDesign 5.5 Export Problem | SamL | ePub | 4 | 11-10-2011 01:46 PM |
Printing Problem - Unable to resolve with CSS moldifications | p2n33 | Library Management | 4 | 07-25-2011 04:14 PM |
Justification problem even with extra css | hiperlink | Recipes | 2 | 03-09-2011 08:40 AM |
EPub conversion stylesheet.css problem | nycaleksey | Calibre | 1 | 03-25-2010 11:42 PM |