Pictures and captions problems in Epub export
I'm using InDesign CC 2018 (MacOS 10.11.6). I have a multichapter book with about 50 graphics that I'm trying to export to Epub.
The pics have captions, and no matter what, it seems, InDesign can't write an Epub that keeps captions and pics together properly.
What I've done: Grouped each pic and its caption, then anchored in text using Above line/align left.
What happens: instead of being properly tucked in under its picture, the caption straggles about a pica below it. And instead of being aligned left (which the caption is), the pic is indented about 6 points (I can find no reason why this should happen; even when anchored to a flush left-styled placement paragraph).
So, apparently, InDesign doesn't treat the pic and caption as a single object, even though I have grouped them together. I've tried different Object Export Control variations on different pics/captions, but nothing seems to change this behavior. Moreover, if the caption has more than two lines, I need to add space below to keep the final line of the caption from being swallowed by the following text--it's as though the space below is measured from the picture, ignoring the caption frame.
Does fixing it involve CSS editing? If so, what should I look for and change?
