Question Posted Saturday February 17 2007, 10:42 pm
i know how to put in an image for the background for a website but, how do you make it stay still? i have stripes as the background and i dont like it to move with the text. thanks.
You can remove background-image in <style> if you want, and use <body background=>, but the W3C recommends you use CSS. So this is added in the head section:
PunkieFreak4690 answered Sunday February 18 2007, 12:30 am: In the background properties section of your website code, is there a spot where it says "background-attachment:"? If so, next to the colon, put "fixed" and it keeps the background in place. If not, add that to your background settings "background-attachment: fixed;" and that should help.
Also, to make it more aligned, you can make a setting to align in the center, or bottom right, for example. "background-position:bottom right;"
I added that because some times when you do put the background in "fixed" mode, it some times aligns to top center or bottom left, and you probably want it to align center to make it look balanced.
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.