Gabriel de Souza Gabriel de Souza - 1 year ago 56
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';