Reply To: Responsive Body Background Image

Home Forums Support Responsive Body Background Image Reply To: Responsive Body Background Image

#227276
Dan

Okay. so I’ve come up with a temporary solution. I created a cropped image in the width of the original image. Cropped it pretty much actually. Then I added this code to my css:

@media (max-width:768px) {
		body {
			background-image: url(NEW CROPPED IMAGE URL);
			background-size: 100%;
			background-attachment: fixed;
		}
	}

It works for the desktop and phone, but for some strange reason the background isn’t in a fixed position on an iPad. I didn’t add anything in my code to tell it not to be fixed, so I’ll have to look into that some more.