![]() |
Background images that don't move
I need to know how I can keep a background image stationary and appearing to always be in the same position as the page moves (scrolls down). I hope you know whayt I mean. An example can be found at http://www.mediajobsearchcanada.com
|
I do not know what you mean.
Are you talking about the maple leaf in behind that is scrolling? Easiest thing to do usually is put it in a table and it will stay within the table. Or define the table height and make the image that height too. |
I think he's talking about those crappy floating ads that move while you scroll. They are a java script but I can't think of any good list that would list a sub with one of those on there. I believe it was MaxCash that tried to get webmasters to use them several years ago.
|
if you mean the leaf background, use this in the stylesheet:
BODY { background-image : url(images/background.gif); <~~change this background-position : center; background-attachment : fixed; background-repeat : no-repeat; } |
or if you are just using a simple returning background image:
|
Thanks majick, that's it exactly. Works perfectly!
|
Be aware, not all browsers support the non-scrolling background attribute.
|
All times are GMT -4. The time now is 08:40 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc