View Single Post
Old 03-31-2012, 04:20 PM   #3
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by mtrahan View Post
...My question is: how to replicate something like this in the ePub version?...
With all of the variables in terms of display width, both absolute pixels and number of characters, it will be tricky, if not impossible.

You can come close by making the poem one <p>, using <br /> to start new lines, and then wrap it in a <blockquote>. By applying a CSS style to the <blockquote> to set a left margin will get you close to a centered poem. You can also use a <div> instead of <blockquote> but that will fail if the ePub is converted to classic MOBI, at least with either KindleGen2 or calibre, as block level margins aren't supported and neither convert the <div> to a <blockquote>. <blockquote> will work adequately with either conversion but results in only the reader's default indent (~2em). KindleGen2 will do a decent job of replicating the ePub's behavior in ADE in the KF8 partition when either <blockquote> or <div> is used.
dwig is offline   Reply With Quote