you can try setting the relays to line-height and text-align to center the image. Then, using negative margin, you can practically reduce the size of the image, at least the space that is required for the image.
if you want the image to be width: 100% and min-height: 600 pixels, it is not coherent, and you need to cut something so that it preserves its ratio, but with some parts hidden. Vertical or horizontal.
This is the case if your image is part of your content, otherwise , if it is just decoration , you should do background-image -position and -size . An example of cutting off one image in a stream from its center: http://codepen.io/gc-nomade/full/fdIxe
.imageHelper { height: 600px; line-height: 600px; overflow: hidden; text-align:center; } .imageHelper img { margin: -100%; vertical-align:middle; min-height:600px; min-width:100%; }
since it uses basic CSS, you need to increase compatibility with the old browser :)
G-cyr source share