Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Background Fixed Image


Guest

Recommended Posts

How do I make the background fixed, so that the shopping cart webpage moves, but the background stays put and is fixed?

 

Thanks!

Link to comment
Share on other sites

If your doing this for all of your pages use body tag in stylesheet.css like so

body 
{
background-image: 
url('your_pic.gif');
background-repeat: 
no-repeat;
background-attachment: 
fixed
}

If you only want it on one page then in the <head></head> of that page add

<style type="text/css">
body 
{
background-image: 
url('your_pic.gif');
background-repeat: 
no-repeat;
background-attachment: 
fixed
}
</style>

You may also want to look at this

 

http://www.w3schools.com/css/css_background.asp

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...