04-16-2009, 08:08 PM | #1 |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Page break before h2 question
Do I need to add the force-page-break-before-attr <h2> in the css override box?
Basically, I've tried this before but I never could get it to break before the attribute and so far I've been adding <P style="page-break-after:always"> </P> after each chapter in order to force a page break for the new chapter. i'd really like the heading to start on a fresh page but I'd like to not have to add <P style="page-break-after:always"> </P> 30 times to an html document if I don't have to. If I do use force-page-break-before-attr in the css override how exactly do I type it in as well as the <h2> tag? I'd really appreciate any and all help on this. thanks Amalthia Last edited by Amalthia; 04-17-2009 at 01:25 PM. |
04-16-2009, 09:09 PM | #2 |
creator of calibre
Posts: 44,353
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
to force page breaks before tags use --force-page-break-before-tag rather than --force-page-break-before-attr
Or just set --override-css to Code:
h2 {page-break-before: always} |
Advert | |
|
04-17-2009, 03:34 AM | #3 | |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
Thanks! |
|
04-17-2009, 03:40 AM | #4 |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
P.S. Is this code valid?
h2 { text-align: center; page-break-before: always;} |
04-17-2009, 03:57 AM | #5 |
MIA ... but returning som
Posts: 1,600
Karma: 511342
Join Date: Nov 2007
Location: Germany
Device: PRS-505 and *Really* not owning a PRS-700
|
ARG! Could someone fix the <h2> in the title? The board spy is going crazy ...
@Amalthia: Yes, it should be. |
Advert | |
|
04-17-2009, 01:25 PM | #6 |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
|
04-17-2009, 01:33 PM | #8 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
|
04-17-2009, 01:47 PM | #9 |
MIA ... but returning som
Posts: 1,600
Karma: 511342
Join Date: Nov 2007
Location: Germany
Device: PRS-505 and *Really* not owning a PRS-700
|
|
04-17-2009, 06:33 PM | #10 |
Wizard
Posts: 1,163
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
deleted to add this to it's own thread since the question I asked is similar but different enough...
Last edited by Amalthia; 04-17-2009 at 06:52 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi to epub page break | mr.ninja13 | Calibre | 23 | 08-09-2011 02:06 PM |
iPad Page Break Doesn't support iPad? | bala07 | Apple Devices | 9 | 11-10-2010 07:21 AM |
Why two separate page break xpaths in 0.6.x? | ldolse | Calibre | 3 | 08-12-2009 01:00 PM |
Page break before <b> | flowoeB | Calibre | 14 | 04-12-2009 03:05 PM |
PRS-500 makelrf3 and Unexpected Page-Break | EatingPie | Sony Reader Dev Corner | 0 | 04-19-2007 01:28 AM |