Hi,
it seems like most browsers won't keep a picture set with an id selector to the lower right corner of the screen (absolute positioning, bottom and right is set to 0px) in place if the page has a scrollbar. When I scroll, the picture "sticks" where it was placed on load.
Is there a way to escape this problem? (I have thought of using a javascript to update the picture's position as the window scrolls, but I don't know if it works.)
The CSS code I am using:
#image {
position: absolute;
bottom: 0px;
right: 0px;
z-index: 1;
}
And in my HTML file:
<div id="image"><img src="image.jpg"></div>
Best Regards,
Jolle Kox
it seems like most browsers won't keep a picture set with an id selector to the lower right corner of the screen (absolute positioning, bottom and right is set to 0px) in place if the page has a scrollbar. When I scroll, the picture "sticks" where it was placed on load.
Is there a way to escape this problem? (I have thought of using a javascript to update the picture's position as the window scrolls, but I don't know if it works.)
The CSS code I am using:
#image {
position: absolute;
bottom: 0px;
right: 0px;
z-index: 1;
}
And in my HTML file:
<div id="image"><img src="image.jpg"></div>
Best Regards,
Jolle Kox