So, the proper way is "page-break-inside:avoid". You'll always be at the mercy of ebook readers respecting this or not, with bugs or not. Don't try to be over-smart and force some particular behaviour in some particular reader: it will fail miserably somewhere else. Keep it simple, do the right thing™ and blame the others when it doesn't work