View Single Post
Old 03-31-2012, 11:46 AM   #1
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
Centered but left align?

Dear ePub gurus,

I have a problem that I hope can be simply fixed. I'm working on a book — designed for print in InDesign — where there is a small poem at the end of a chapter, and that poem is in the center of the page but left aligned. You will understand better with an image (from the PDF output):



My question is: how to replicate something like this in the ePub version? So far, I'm just using left and right margins and aligning the text to the left, but it isn't an ideal solution... Exactly, current CSS for this poem is:

p.poem {
font-weight: normal;
font-style: normal;
font-size: 1em;
text-decoration: none;
font-variant: normal;
text-indent: 0em;
text-align: left;
margin: 0em 4.5em 0em 4.5em;
}

Any suggestions to make it look more like the original? I'm no CSS guru but I can't seem to find a better solution. Any help will be greatly appreciated.

Thanks in advance,

Michael
mtrahan is offline   Reply With Quote