Looking to create a div with an image floated to the top left and text of varying lengths. The aim is to have the text centered in the middle if it's shorter than the image or wrap around it if there's enough content.
The basic layout is:
<div class="wrapper">
<img src="http://placekitten.com/50/50" class="image" style="float: left">
<p class="text">
Text here
</p>
</div>
Attempts with display table and flexbox treat the image and text as separate blocks, hindering text wrap. Fixed height isn't viable due to variable text length needing vertical alignment before wrapping.
A fiddle showcases two hard-coded styles aiming for a single solution that adapts to any text length input.
Is there a workaround without resorting to javascript hacks?