View Single Post
Old 10-16-2024, 09:57 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,931
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
I'm not sure if there is a special ePub 3 function, or if you could get an effect like that with display:flex...but couldn't you get that with using float??

I haven't tested this...I'm taking a break at work ...but something like this might work:

Code:
div {float:left; width:100%; text-align:center; break-inside:avoid}

<div>
  <img alt="" src="test.jpg" />
  Caption text
</div>

<p>Other text.</p>
<p>Other text.</p>
But what about centered or full width images?
JSWolf is offline   Reply With Quote