![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,157
Karma: 7068605
Join Date: Dec 2007
Device: Amazon Kindle Paperwhite, B&N Nook Colro
|
Help with paragraphs w/image
I've converted a PDF (saved PDF to html in Acrobat Pro) file (yeah not ideal, I know), but it actually looks really really good, and I want to keep it.
I loaded the HTML into Sigil and want the paragraphs indented. The problem is this: There is a <p> in the first section of the paragraph, then until the section ends each line break is done with </br> There is no style sheet either. Attached is what it looks like. Any help in changing this? I won't go through and do each line manually, but didn't know if there was a way to add a style sheet and do it that way. Thanks for any help! EDIT: Figured out that if I replace <br /> with </p><p> then it gives the desired result, now I just have to figure out how to get rid of the extra line....adding a rule in the header for a text indent works, just not setting the top and bottom margin Last edited by jhempel24; 01-24-2011 at 03:20 PM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Of course this will work. I would recommend picking up the basics for xhtml and css and try to do things in stylesheets as much as possible. The top and bottom margin can be set in various ways. You can do it for the body, but also for the page (@page in the stylesheet). Download some epubs and look at the internals.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,157
Karma: 7068605
Join Date: Dec 2007
Device: Amazon Kindle Paperwhite, B&N Nook Colro
|
Yeah I know it's ideal, but this was a converted pdf, and there was no style sheet. The problem is with the <br />, there just isn't a ton out there on how to keep formatting when those are in use.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
space between paragraphs | gatorman | Sigil | 3 | 01-07-2011 10:17 AM |
Getting extra Paragraphs | MacEvansCB | Calibre | 5 | 12-19-2010 02:46 PM |
Paragraphs from indentations? | Raketemensch | Calibre | 6 | 09-16-2010 10:43 AM |
Paragraphs and indent | mrmikel | Calibre | 33 | 01-10-2009 05:37 PM |