View Single Post
Old 10-16-2024, 08:52 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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>

Last edited by Turtle91; 10-16-2024 at 08:56 AM.
Turtle91 is offline   Reply With Quote