05-15-2011, 02:47 PM | #1 |
Connoisseur
Posts: 62
Karma: 10
Join Date: May 2009
Device: Sony PRS T1
|
Problem with non-indented paragraph
I am attempting to alter an epub generated with Writer2epub - just the bits that it doesn't cater for.
My problem is this: In the book, in the middle of some ordinary paragraphs there are a couple of verses of a song. The verses come out fine (Thanks Jelleby - I used some code that you'd shown - I hope you don't mind), but the paragraphs afterwards are non-indented as though they were a new chapter - which they aren't. I put in <p> </p> in between the verse and the paragraph but that didn't seem to work either. How do I get it so that the next paragraph is indented. The coding for the paragraphs are: Code:
p { margin:0pt; text-indent:0em; text-align: justify; font-size: 1.00em; } p+p { text-indent:1.5em; text-align: justify; font-size: 1.00em; } |
05-16-2011, 04:29 AM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You are telling that "normal" paragraphs are not indented, and only paragraphs that come after a paragraph have a 1.5em indent. You can either:
1. Add a rule to indent paragraphs that come after a poetry fragment too: Code:
div.poetry + p { text-indent: 1.5em; } Code:
p { margin: 0; text-indent: 1.5em; text-align: justify; font-size: 1.00em; } h1 + p, h2 + p, h3 + p { /* and more, if needed */ text-indent: 0em; } Code:
p.noindent { text-indent: 0; } |
Advert | |
|
05-16-2011, 06:30 AM | #3 |
Connoisseur
Posts: 62
Karma: 10
Join Date: May 2009
Device: Sony PRS T1
|
Thank You
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.epub hyperlinks, centered and non indented text. | Xabache | ePub | 2 | 09-13-2010 01:11 PM |
Indented bookmarks and LRF | pimpoum | LRF | 0 | 07-10-2010 11:58 AM |
Indented bookmarks and LRF | pimpoum | LRF | 0 | 07-10-2010 11:55 AM |
I'm having a problem with extra paragraph spaces | akosimike | Calibre | 10 | 05-27-2010 06:53 PM |
LRF paragraph problem | qq67 | Calibre | 4 | 03-09-2010 06:40 AM |