-5

My div has a height of 105px.

My image inside the div has a height of 359px.

How can I override the size of the div so that the image doesn't cut off and the height of the image is full.

Many Thanks

1 Answers1

1

Try using background-image on your div, than you can use CSS properties like background-position, background-size, background-attachment, to fit the image inside your div.

If you need examples search for background-image into e.g. w3school.

Peter B
  • 22,460
  • 5
  • 32
  • 69