Someone more knowledgeable will likely reply, but I think your problem is twofold. First, each of those only take into account the height of the container, which for that parent div is (I assume) <body>; and second, AFAIK there is no reliable way to target the height of the viewport for ebook. I believe the only way to accomplish what you hope to do is via SVG wrapper, and even then I think you'd have to force page breaks around them.
|