I need to mimic the following behavior of the div with a background Image.
The page has 3 div on top of one another. They have a maximum width of 600px. When opened on a smaller screen the width adjusts to the the screen, and the height should adjust too, keeping the aspect ratio of the image which is always 10/7
I tried playing with the background-size style attribute, but that doesn't change the height of the div, so the picture ends up being clipped. I can't afford to clip the image.
Please advise
one
two
three