View Single Post
Old 10-19-2010, 09:15 AM   #22
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Answer from Amazon

Quote:
Originally Posted by Snowman View Post
I've found that mobi <blockquote> will work as long as there are NO <p></p> tags within the <blockquote></blockquote> block. Use <div></div> instead (or naked lines separated by <br>).

You might want to define a ".p" class with the same characteristic as you are using for <p>, so you can state <div class="p"> to gain a pseudo-para.

This is sorta implied in the Kindle Formatting Guide in the example in the section on Nested TOC Guideline.

Also, be careful if you use 'margin- top/bottom' in the blockquote style, since the mobi/kindle reader will round any fractions up - so 1.2em becomes 2em - which is probably not at all what you wanted. Similarly, the left margin indent is 1em (implemented in the *reader*), unless the 'margin-left' setting is used, in which case the value is used as an increment in em to the pre-defined 1em indent display.

For my own purposes, I assumed 16px=1em, and found that the css definition 'blockquote{margin: 8px 0 8px 0;}' (the left margin is ALWAYS in ems) works about as well as I care to get without a lot of extra effort.

regards

Snowman.
This is the answer from a very helpful lady to a query in the Amazon forums:


Quote:
Re blockquotes, I'm guessing that you have <p> tags inside the blockquote tags? If you are, I think the paragraph formatting is overriding the blockquote formatting. I'd recommend applying a "blockquote" style to those paragraphs, rather than relying on native blockquote styling based on the blockquote tags. It's not that you're doing any wrong as such - just that Kindlegen is a little quirky in how it applies formatting. Alternatively, if you use the blockquote tags to enclose text, and don't use any paragraph tags inside the blockquote, it'll format the way you expect. It just won't do it, as far as I know, when paragraph tags are used inside the blockquote.

- Donna
I haven't tested yet but seems reasonable. Mobi is quirky.

Snowman, you are a genius.
crutledge is offline   Reply With Quote