Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add background image


davidstummer

Recommended Posts

Posted

Edit stylesheet.css

 

Instead of:

 

BODY {

 background: #ffffff;

 color: #000000;

 margin: 0px;

}

 

write something like:

 

BODY {

 background: blue;

 image: http://www.domain.com/image.jpg;

 color: #000000;

 margin: 0px;

}

 

More compatible way is set background attribute in BODY tag, but you need do this in EVERY file in root osc folder.

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Posted

Silencer was close. But the code wasnt quite right.

Change stylesheet.css:

BODY {

 background: #ffffff;

 color: #000000;

 margin: 0px;}

to:

BODY {

 background: url(pathToImage/fromStylesheet/image.jpg) no-repeat;

 color: #000000;

 margin: 0px;}

This is the most compatible way of giving all of your pages a background image.

Perdure - Transparent Object Relational Persistence

Archived

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

×
×
  • Create New...