08-18-2012, 06:25 PM | #1 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2012
Device: Kindle
|
Pages Not Breaking
I'm doing a recipe book - color photos, lots of lists - and the authors would like for each recipe to start on a new page.
I'm using this at the end of each recipe: Code:
<hr class="sigilChapterBreak" /> I have seen posts here that suggest breaking the file into multiple files, so the page breaks will be automatic. Whoo, I really don't want to do that, as it will make navigation while editing very difficult. Is there another way? |
08-18-2012, 06:48 PM | #2 | |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Just wait, knowing that is where it will hapen Last edited by theducks; 08-18-2012 at 06:50 PM. Reason: continued thought |
|
Advert | |
|
08-18-2012, 06:50 PM | #3 |
Grand Sorcerer
Posts: 27,971
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Simply marking where the chapter breaks are supposed to occur will do nothing when converted to MOBI—as you've obviously discovered.
Now that you've marked the breaks, you're going to want to go ahead and utilize the "Split at Chapter Markers" feature if you want Kindlegen (Previewer) to create breaks. Kindlegen knows nothing about Sigil's hr classes—nor should it. If you don't want to physically split up your html file, you can insert a div with a unique class and then use CSS to assign the "page-break-before: always;" attribute to that class. I believe kindlegen will honor that. |
08-20-2012, 03:27 PM | #4 | |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2012
Device: Kindle
|
Quote:
|
|
08-20-2012, 03:58 PM | #5 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
Advert | |
|
08-20-2012, 05:04 PM | #6 |
Grand Sorcerer
Posts: 27,971
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You bet. Just like Doitsu indicated, if you already have an element in your document that you consistently want a page break to precede, then by all means ... no need to add extra code. Just assign the page-break-before attribute to whatever element (or element class) works for you.
|
08-21-2012, 12:46 AM | #7 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Beware. If you also put margins in the same elements in the stylesheet, the margins might be ignored in ADE.
|
08-21-2012, 03:33 AM | #8 | |||
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Only the top margin, actually, and that's in accordance with the CSS spec (which says it may be ignored). That's at least with CSS2.1:
Quote:
Quote:
Quote:
Last edited by Jellby; 08-21-2012 at 03:56 AM. |
|||
08-21-2012, 12:32 PM | #9 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Hmm, did not check the specs. Sounds silly though.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Split PDF pages into smaller pages (images into tiles) | Astro | Barnes & Noble NOOK | 4 | 06-12-2020 10:56 AM |
Kindle pages vs. MS Word pages... | joecap | Workshop | 14 | 02-18-2011 09:23 AM |
Breaking DRM | maurices5000 | Sony Reader | 40 | 02-02-2011 07:14 PM |
New hack PRS-505: multi status line with %read, time&pages reading, pages per minute. | Car105 | Sony Reader Dev Corner | 5 | 01-03-2010 10:03 AM |
Turning Scanned PDFs with facing pages into single pages | jimteacher | Workshop | 5 | 11-09-2009 02:59 PM |