CSS background-attachment:fixed; issue in mobile browsers -
so, i'm having issues fixed background on mobile devices. when viewed in chrome on windows 7 laptop, background looks fine; image (which thin) tiles horizontally , stays fixed viewport. in chrome on android phone, though, background sticks top of page, disappearing scroll down.
now, know these mobile browsers have different idea of viewport is, , therefore background-attachment:fixed; not work, none of solutions find seem fix (or maybe i'm misunderstanding them). general suggestion seems to apply wrapper div page holds background instead, tried based on this blog post:
#wrap { background-image: url(../img.png); background-repeat: repeat-x; background-position: left top; width: 100%; min-height: 100%; /* sticky footer */ overflow-x: hidden; /* sticky footer */ } this not fix problem @ all; messes fixed appearance on laptop. there i'm not understanding? i'm new web coding (css/html), think there may i'm missing here.
on opera-mobile worked perfectly. in safari ios6 (iphone) did not work (not sure if it's browser crash or code).
i recommend use iscroll4:
or iscroll5 (beta test):
Comments
Post a Comment