It really puzzles me. I want pic.jpg to be stationary in the background (do not move when scrolling) and that it does not stretch.
It works on all browsers (e.g. Chrome, Safari, Firefox), except Chrome on Android (it works even in the original Android browser)
body{ background-color: transparent !important; background-image: url(<%= asset_path "pic.jpg" %>); background-position: center center; background-repeat: no-repeat; background-attachment: fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
Chrome for Android displays it as pic.jpg, being halfway on the screen, and not on the entire page, and does not remain motionless in the scroll.
I cannot play it on jsfiddle, I am also trying to debug it using my Android phone and nothing helps.
Isn't that a way to create a background image?
android css google-chrome twitter-bootstrap ruby-on-rails-3
Nick ginanto
source share