• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

How to use a static background picture?

DrSobol

New Member
I want to make the background static, so when I scroll down the page, only the text will move.
This is very common and should be easily setup, if u have ideas tell me.
I use FrontPage XP.
 
<style type="text/css">
<!--
body {
background-attachment: fixed;
background-image: url(your-background-image-goes-here.jpg);
background-repeat: none;
}
-->
</style>
put it somewhere before the </head> tag.
For background-repeat you have the option of none (it'll be shown just once), repeat-x (it'll be repeated horizontally), repeat-y (it'll repeat vertically) and repeat (combination of repeat-x and repeat-y)
 
I have searched in the boards and used the following code
<background bgproperties="fixed">

Now I want to add an image, positioned behind the text (I know how to do that) but it must be static also. I suppose I have to add the "fixed" command somewhere in the image properties, isn't it?
 
Back
Top