Hi,
I've been searching this forum and google for an answer, but haven't found anything yet.
Is it possible to use CSS to fix a background image so that it doesn't scroll with the rest of the pages, when it is viewed on an iPhone/iPodTouch ?
i've been trying
but that does not seem to work
or have i got something totally wrong?
i'm guessing it is because on the iPhone, you're not actually scrolling the page within a window, you are effectively scrolling the whole window up and down the screen - so even though the background is fixed, it will still move in the same way that on the desktop, if you click the browsers title bar with the mouse and drag it up and down your screen, the background image will move with it?
but if anyone does know of a way to get the text on the page to scroll but the image to remain static, would be most grateful for any suggestions.
cheers
..jai...
I've been searching this forum and google for an answer, but haven't found anything yet.
Is it possible to use CSS to fix a background image so that it doesn't scroll with the rest of the pages, when it is viewed on an iPhone/iPodTouch ?
i've been trying
Code:
body {
background-image: url(bkgnd.jpg);
background-position: top right;
background-repeat: no-repeat;
background-attachment : fixed;
or have i got something totally wrong?
i'm guessing it is because on the iPhone, you're not actually scrolling the page within a window, you are effectively scrolling the whole window up and down the screen - so even though the background is fixed, it will still move in the same way that on the desktop, if you click the browsers title bar with the mouse and drag it up and down your screen, the background image will move with it?
but if anyone does know of a way to get the text on the page to scroll but the image to remain static, would be most grateful for any suggestions.
cheers
..jai...