I am creating a website where the main page’s picture has a max height of 600px so everything looks great with the images I’ve loaded until the screen width expands past 900px, then my image starts to stretch.
I want my image to begin zooming in at 900px to preserve the quality and max height, kinda like this websites main image does (even though this image takes up the full page, right before the width expands to fit the full screen, the image begins to zoom in:
right now my #img css looks like this:
#img {
background-size:cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
max-height: 600px;
On the sample site you linked to, they’re using an image that is 1500 x 994 pixels large. So there’s enough size here to cover most monitors. It’s also a JPG format, and the image does not have any sharp lines and an underwater scene so they can compress the image a lot and still get it to be a low file size (actually, they have a 300K or so file, this can probably be further reduced).
Maybe you just need to use a larger image for your site?