I'm trying to create a slideshow with full screen images that fill the viewport (in my case probably a div) like the ones on this site:
The goal is for the image to ALWAYS fill the the div, regardless of its size... cropping the sides if the div is more narrow than the image, and cropping the top and bottom is the div is shorter than the image. Of course the image needs to maintain it's aspect ration.
Thanks in advance.
Use the css
or cover maybe:
Excellent! 'cover' does exactly what I'm looking for. Thanks!