CSS: background image not displaying in Android browser
April 11, 2015 12:41:12 Last update: April 11, 2015 12:41:24
This didn't work in the Android browser (but worked in Firefox under Android):
This worked:
.hero { background: url(images/bg.jpg) no-repeat scroll center center/cover;
This worked:
.hero { background: url(images/bg.jpg) no-repeat; background-position: center center; background-attachment: scroll; background-size: 100% auto; }