![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
|
![]()
Has anyone found issues with page-break-inside:avoid in Google Play Books?
I've tried this on my Sony Z1 and the Windows 8 version with the same effect (oh, hats off to GBP for syncing the file I opened for test on both apps!) The book I'm working on really needs to keep H1, H2 etc together with the following text - well, it should anyway to look good. I've got page-break-after:avoid inside my H classes and also have tried the old DIV around the stuff to keep together and page-break-inside:avoid trick, but it's being ignored. I put a pink background in the grouping DIV to check, and I can clearly see them spanning pages where they ought to be bumped to the next page. All the other (good) readers are fine and dandy with this except GPB. This is a shame, cos I really want this to work on GPB. This book is going to go up on Google Play by the publisher and they don't want to have their audience fiddling about copying ACSM files to other readers and the like. |
![]() |
![]() |
![]() |
#2 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
I know only two ways of preventing a pagebreak: force a pagebreak before or wrap the content in a really unbreakable container (an image, maybe SVG would work too). |
|
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why do you need a page break avoid? Headers don't break automatically.
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
h1, h2 { page-break-after: avoid; } ![]() |
|
![]() |
![]() |
![]() |
#5 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Quote:
HOWEVER: I did get a response back from Google saying that the reader behaves differently if you just upload an ePub to your phone and read it in GPB rather than uploading to Partner Centre and then reading it as a reviewer. Curious. I'm going to give this a try today to see what happens. * yes, yes, I know - "fixed layout vs ePub2, yadda, small screen, can't control the look, yadda". It's worked well on earlier editions with a bit of effort and if you ARE careful and design things to gracefully degrade and adapt then you can get some pretty acceptable technical layout in ePub2. We don't want the customer to have to muck about with downloading specific readers, it needs to work 'out of the box' when they buy it from the vendors - usually Amazon, Apple, Google. Cos that's were the money is (in different proportions!) |
|
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
|
|
![]() |
![]() |
![]() |
#8 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Does Google Play actually ever sell any books?
|
![]() |
![]() |
![]() |
#9 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
|
|
![]() |
![]() |
![]() |
#10 | |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
No, wait, that's not quite true. I've seen it work for images, and in some cases, for tables. I've never seen it work on a div or any other element that contains other block elements. The only surefire way I've seen to make that work is with an image (which can be SVG). |
|
![]() |
![]() |
![]() |
#11 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Google Play Books & Page Breaks | Rand Brittain | ePub | 12 | 05-15-2015 01:33 PM |
Keeping text together (block vs. page-break-inside:avoid) | Psymon | ePub | 2 | 10-12-2014 09:56 AM |
iPad iBooks: page-break-after/inside/before NOT working? | philx | Apple Devices | 7 | 01-27-2013 12:42 AM |
Page-Break-Inside: Avoid - Solution or Hack? | sab1234 | Kindle Formats | 3 | 01-17-2013 04:10 PM |
Page-break-inside:avoid and mobi | AlexBell | Kindle Formats | 3 | 06-01-2011 06:03 AM |