Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2010, 09:17 AM   #1
SmeagolRO
Junior Member
SmeagolRO began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Kindle 3 Graphite
HTML formatting for K3

Hello,

I'm trying to obtain different margins for a set of paragraphs in a HTML file. Inside the file it looks fine (it renders fine also) but the PRC on KindlePreviewer doesn't show the same results.

I'm trying to format with a larger margin the opening words of a chapter (like the memoires of prices Irulan from Dune). Seams that margin-left: xx applied to <p> or <div> via inline style or CSS doesn't work.

Would also be interesting to be applied for the songs from Lord of the Rings, for instance.

Any advice, please ?
SmeagolRO is offline   Reply With Quote
Old 11-29-2010, 12:56 PM   #2
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,478
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by SmeagolRO View Post
Hello,

I'm trying to obtain different margins for a set of paragraphs in a HTML file. Inside the file it looks fine (it renders fine also) but the PRC on KindlePreviewer doesn't show the same results.

I'm trying to format with a larger margin the opening words of a chapter (like the memoires of prices Irulan from Dune). Seams that margin-left: xx applied to <p> or <div> via inline style or CSS doesn't work.

Would also be interesting to be applied for the songs from Lord of the Rings, for instance.

Any advice, please ?
Use <blockquote>. This will establish a left margin of 0.25 inch (0.5 inch on K1). These can be nested to achieve larger indentation.

Kindle format does not support very much CSS and a fraction of tag attributes - remember it derives from Mobipocket, which had to work on tiny screens and low powered CPUs. Go to Amazon DTP and download the publisher guidelines, the forums there also describe the supported HTML etc. Joshua Talent's 'Kindle Formatting' is probably still the best resource though it could use an update.
tomsem is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML formatting MarcusStringer ePub 17 04-06-2010 11:23 AM
html2mobi - html formatting brunovg Kindle Formats 2 12-13-2009 05:56 AM
HTML formatting john folkard Calibre 1 08-18-2009 10:15 AM
html formatting question Nate the great Workshop 49 07-17-2009 10:33 AM
Formatting a pdf or html..... tmastern Sony Reader 3 12-12-2006 03:41 PM


All times are GMT -4. The time now is 01:46 PM.


MobileRead.com is a privately owned, operated and funded community.