Given the following:
<style>
.img_box {
display: flex;
}
</style>
<div class=img_box>
<img src=img/>
<div>Title text of some variable length. Can sometimes be wider than the image, sometimes smaller</div>
</div>
I want to be able to set either a height or width value on the image and have the box shrink to match so it's the same width as the image (minus padding or whatever). The text should wrap and not affect the width of the box at all so whatever the image is sets the width for the box and text.
I know the height of the box will stretch to accommodate wrapped text and that's fine.