|
|
#1 |
|
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Aug 2012
Device: Kindle
|
Pages Not Breaking
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? |
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Just wait, knowing that is where it will hapen
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
Last edited by theducks; 08-18-2012 at 06:50 PM. Reason: continued thought |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,817
Karma: 23122266
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#4 | |
|
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Aug 2012
Device: Kindle
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,079
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
|
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,817
Karma: 23122266
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,095
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
Beware. If you also put margins in the same elements in the stylesheet, the margins might be ignored in ADE.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#8 | |||
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,136
Karma: 2460081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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. |
|||
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,095
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
Hmm, did not check the specs. Sounds silly though.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 |
| Classic Split PDF pages into smaller pages (images into tiles) | Astro | Barnes & Noble NOOK | 3 | 07-28-2010 03:55 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 |