Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Background Image


webman_25

Recommended Posts

I can't seem to figure out how to set a background image in my site. I have set 'header' and 'footer' images, but I can't get an image in the middle area.

Can anyone help?

Try something like this in your style sheet.

/////////////////////////////////////////////////////////////////////////////

 

BODY {

background: #ffffff;

color: #000000;

margin: 0px;

background-image: url("images/backgroundimage.jpg");

background-repeat: repeat;

background-attachment: fixed;

}

 

/////////////////////////////////////////////////////////////////////////////

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Try something like this in your style sheet.

/////////////////////////////////////////////////////////////////////////////

 

BODY {

  background: #ffffff;

  color: #000000;

  margin: 0px;

background-image: url("images/backgroundimage.jpg");

background-repeat: repeat;

background-attachment: fixed;

}

 

/////////////////////////////////////////////////////////////////////////////

 

 

Thanks man! :)

Link to comment
Share on other sites

Be sure to check how the image appears in other browsers. I use a background image and using the URL in the "body" in the stylesheet, it wouldn't show up in Mozilla and Netscape. It could've been me but I don't think so as I tried it every which way. Worked fine in IE.

 

I solved it by creating a new class

 

.bodybg {background-image: url(images/mdbluebg.jpg);}

 

And then I added the class to the html body tag of each appropriate file (just about everything under the "catalog"). I had to customize each page anyhow.

For some reason Netscape and Moz pick up the image this way.

 

Lauren

Link to comment
Share on other sites

Be sure to check how the image appears in other browsers.  I use a background image and using the URL in the "body" in the stylesheet, it wouldn't show up in Mozilla and Netscape.  It could've been me but I don't think so as I tried it every which way.  Worked fine in IE.

 

I solved it by creating a new class

 

.bodybg {background-image: url(images/mdbluebg.jpg);}

 

And then I added the class to the html body tag of each appropriate file (just about everything under the "catalog").  I had to customize each page anyhow. 

For some reason Netscape and Moz pick up the image this way.

 

Lauren

 

 

Thanks for your help Lauren!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...