Help align text within a flexbox item

I am trying to align text in the bottom left corner of an img element that sits in a flexbox container.
I want the text to be responsive with the image.
I’ve tried using absolute positioning but for some reason it will only align to the centre of the img.
Making the img-div a flex container hasn’t worked either.
Any help would be massively appreciated.

The elements I am talking about are within the div with the id=“img-div”

This is what I am trying to achieve while keeping it responsive when the browser resizes (Sorry for the cheesy stock image):


Maybe something like:

#img-div {
  flex: 1;
  align-self: flex-start;
  position: relative;

  max-width: 100%;
  display: block;
  height: auto;

  position: absolute;
  bottom: 10px;
  left: 8px;
1 Like

Thank you. That does the trick :slight_smile: