I have an image inside a figure. The image has the following style:
height: 300px;
max-width: 300px;
display: block;
margin: 0 auto;
The image must be centered.
The caption underneath the image must be left aligned to the bottom left corner of the image and be no wider than the image.
The image could be any size, so fixing the width and offset of the figcaption will not work.
The only thing I could think of is making the figure inline-block, but then the image is left aligned and I need it centered.
Can anyone come up with a solution.