If you have a div of any size you can set it to have a background image, and then you can give that image the background-size attribute of 'cover'. This maintains the aspect ratio of the image, but sets its size so it covers the div, either fitting to the width or height, whichever is proportionally less.
background-image: ...
background-position: center;
background-size: cover;
Is there a way, in pure CSS, that I can achieve the same thing but using a div as a frame, and a content div that sits inside it and scales - maintaining it's aspect - to fill the frame div area?
So the div would need to take the full width of the div, and then be centred vertically and horizontally inside the parent which have overflow: hidden on.
Thanks, H