Hi, im fuser and i want to know how to put a big image (actually i have it as wallpaper in my laptop) as background in a site but i dont want the image to move. I saw some sites where the images stays still although you scroll down the site. How can this be achieved? Thanks, fuser
<body background="drkrainbow.gif" bgproperties="fixed"> should do the trick assuming that you understand how to use html
The correct way to do this is through CSS. body { background: url(path/to/your/image.jpg) no-repeat fixed; } Just watch out for wide resolution screens.
body{ font-family: Tahoma, Arial, Helvetica, sans-serif; color: #666666; background-color: #383838; background-image: url(/monumental.jpg); background-repeat: no-repeat fixed; } Thanks for the help! fuser
make sure that the image path is correct. If the image is in the same folder as the html file you don't need the / there. And its background-repeat: no-repeat; background-attachement:fixed; body{ font-family: Tahoma, Arial, Helvetica, sans-serif; color: #666666; background-color: #383838; background-image: url(monumental.jpg); background-repeat: no-repeat; background-attachement:fixed; } Code (markup):
You need to modify the CSS file of your theme and use this: body{ font-size: 12px; line-height: 18px; background-attachment: fixed; } I just did it in firebug and it works By the way, where do you host your site ? It is really slow
body{ font-family: Tahoma, Arial, Helvetica, sans-serif; color: #666666; background-color: #383838; background-image: url(/monumental.jpg); background-repeat: no-repeat; background-attachement:fixed; } This is my code.. do i have to remove the no-repeat?? I gave you a green rep thanks again
It should be "attachment" you are mispelling it: attachement TIPS: Use the CSS and HTML validators from W3C and, if you use firefox, install firebug (addon) and "web developer". It will make your web designing life easier. "web developer" is available for IE as well.
ok y is there is a slash before the img url also try putting apostrophes around the url inside the () try this font-family: Tahoma, Arial, Helvetica, sans-serif; color: #666666; background-color: #383838; background-image: url('monumental.jpg'); background-repeat: no-repeat fixed; } tht should do the trick