View Single Post
Old 04-04-2015, 05:29 PM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Jellby View Post
Easy:

Code:
<div style="page-break-inside: avoid">
<img src="snowball.jpg" alt=""/>
<p>A cool image</p>
</div>
and get the readers to properly support it

Since I'm afraid ADE and relatives don't obey "page-break-inside", dgatwood's suggestion is probably the best that you can expect.
Not just ADE. Even WebKit doesn't support pbi:avoid unless they've fixed it in the last year or so. They support pbb:always and pba:always, but they ignore pbi entirely. I'm pretty sure I filed a bug about it almost a decade ago, and it got duped to a bug from many years earlier. In other words, don't count on that ever working right.


Quote:
Originally Posted by RbnJrg View Post
You can use SVG and still to have the caption in whatever the body font is; watch this post:

https://www.mobileread.com/forums/sho...92&postcount=4
The problem potentially comes when you try to deploy on Kindle, where the base font size isn't necessarily 12 point. There's a distinct possibility that the text would be rendered either unusably small or so large that it gets clipped by the viewBox.

I suppose you could remove the viewBox so that everything gets sized to the largest thing in the SVG image (which might be the text), but I'm not sure what other problems that could cause.

I'm not saying it won't work if you don't specify an explicit font and size, but in the back of my head, it sets off warning bells.

Last edited by dgatwood; 04-04-2015 at 05:31 PM.
dgatwood is offline   Reply With Quote