I’m having a problem using responsive backgrounds. http://poppykeith.co.uk/index.html looks correct on computer browsers and in landscape on a mobile browser, however when viewed on a mobile (im using iOS) in portrait, the image is squished to fit the screen.
How would I go about making the image just zoom in in portrait mode and not stretch?
Thanks
The code you wrote almost works, but the
min-width:1024pxand thewidth:100%rules are conflicting with each other and causing the squishing effect you see. Basically,widthtrumpsmin-width.The real technique you want to use is to set that image as a background on the body element, and then use
background-size:coverto make the browser load it appropriatelyDetails: http://css-tricks.com/perfect-full-page-background-image/