Gabriel de Souza Gabriel de Souza - 5 months ago 7x
CSS Question

Css Html div resize to fit, but not resize the image

Hi I am trying to make a resizable div (gallery of photos to my site) to fit but not deform the background image enter image description here

To work in multiple screens, I found a perfect example

How can I make this?


You can use flexbox for this

.movies_wrapper {
  display: 'flex'; flex-direction: 'row'; align-items: 'stretch';