08-20-2018, 04:05 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2018
Device: Nook GlowLight
|
Can’t get formatting correct
Not sure if anyone is familiar with the Ellen Hopkins books (Burned, Crank, Impluse, etc.), but I’m having trouble getting formatting correct.
The books are all printed in a certain way, broken up a bit so certain words line up to make other sentences & such, like this: I don’t even know if there IS a way to get the text to line up properly in Calibre. I know the formatting is possible, as the downloaded samples of other of her books from the Nook store are correct, but is there any way to do it myself? Last edited by BookGirl310; 08-20-2018 at 04:08 PM. |
08-20-2018, 04:38 PM | #2 |
Grand Sorcerer
Posts: 6,365
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
It looks like different paragraphs with a padding-left/margin-left > 0 and a text-indent < 0 in the css stylesheet. If that doesn't work, I'm out of ideas.
|
Advert | |
|
08-20-2018, 06:47 PM | #3 |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@BookGirl310 - this is really an XHTML coding question. It would be better asked in the ePUB forum, which is where the ePub coding specialists tend to hang out.
I can move the thread there if you wish. BR |
08-20-2018, 10:21 PM | #4 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Not difficult, but depending on what you have to start with it could be a bit tedious. There are probably many ways to code it, but this should give you an idea. Like some verse, you may have to have each line as its own paragraph with its specific style class, and if there are lines long enough to spill over (depending on how you're reading it, display size, and so on) you would have to figure out how to handle that.
The title line, "triangle" might have CSS code for its class like this: (name the classes whatever you like) Code:
font-size: 2em; font-weight: bold; text-align: left; text-indent: 0; margin-top: 0; margin-right:0; margin-bottom: 2em; margin-left: 0; Then each indented line like "Scientists say..." would be something like: Code:
font-size: 1em; text-align: left; text-indent: 0; margin-top: 0; margin-right:0; margin-bottom: 0; margin-left: 3em; Code:
font-size: 1em; text-align: left; text-indent: 0; margin-top: 1.5em; margin-right:0; margin-bottom: .5em margin-left: 0; |
Tags |
artistic formatting, formatting, help please, nook glowlight, oddness |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing ebooks (epub) to correct or change formatting | WigglePig | Workshop | 5 | 10-29-2014 08:45 AM |
PDF to mobi: getting the formatting correct. | Matteob | Conversion | 3 | 11-06-2013 04:23 PM |
help with correct formatting | mario932 | Conversion | 1 | 01-05-2013 09:17 PM |
Correct formatting of punctuation | ghostyjack | Workshop | 12 | 08-16-2010 01:36 PM |