Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS background-image not working properly on android mobile

This is the code I am using at the moment:

background: url(myimage.jpg) no-repeat center center fixed;
background-size:100% 100%!important;
background-position:0 0!important;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size:cover;
background-attachment:scroll;

On android I browsed with Chrome. When I scroll down I want the background image to be static. Can I achieve this in some other way?

like image 788
melbourne Avatar asked Nov 28 '22 02:11

melbourne


1 Answers

Unfortunately not, this seems to be a bug which Google has never fixed.

I personally dealt with exactly the same issue last week and ended up giving up on looking for a solution.

The bug submission

For the record, it is also not posible on Safari on iOS.

like image 68
Jase Whatson Avatar answered Dec 06 '22 22:12

Jase Whatson