Page layout problems with ePub books

I am trying to create an ePub file but can’t get the layout right. Why is Scrivener creating large empty gaps between images and text? I attached a screenshot.

After trying a whole day to get this right I am giving up on it. Image positions and sizes seem to act completely randomly so do the spacing between images and text.

Part (all?) of the problem is going to be the specific ePub reader you use. Not all of them are created equal. Some really mess the formatting up.

If you really want to know what is going on then get yourself a copy of Sigil or Calibre and take a very close look at the style sheet information being generated. You might be able to fix it up after the Scrivener compile but … you’re still reliant upon the ePub reader doing what is intended.