I\'d like to resize and crop an image of unknown dimensions, just with css. The image should be resized/cropped to completely fill a container of known dimensions, cutting o
Instead of an you could give the div a background and set background-size: cover.
background-size: cover
css:
background-image: url("yourimage"); background-size:cover; background-position:center center;