I\'m having a frustrating issue, and would love some help.
I\'ve written a script to allow me to resize a div on screen for an application I\'m building for a client, b
In CSS, the background-size property can transform the way the background image proportions itself to the element.
background-size: cover
Edit:
If you want to keep the structure, you can use CSS object-fit properties https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit