0

Working on new page with background image. Displays fine on desktops and tablets but fails on android phones.

body {
background: url("images/bk1.jpg") no-repeat center center fixed;
-webkit-background-size: 100% auto;
-moz-background-size: 100% auto;
-o-background-size: 100% auto;
background-size: 100% auto;
 } 
DennisJM
  • 29
  • 1
  • 3

1 Answers1

0

This question was asked before but it was about IOS: How to replicate background-attachment fixed on iOS

I Think the problem related to background-attachment fixed, so i think you need to make it like this:

*notice: the property of background-attachment won't work on mobile

body {
background: url("images/bk1.jpg") no-repeat center center;
background-attachment: fixed;
-webkit-background-size: 100% auto;
-moz-background-size: 100% auto;
-o-background-size: 100% auto;
background-size: 100% auto;
 }