Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

use image as background


Eleocu

Recommended Posts

I try to use an image as background

I edited the header.php and by adding the background="myimage.jpg" and loaded the image in the same folder as the header file but is not showing...Can somebody tell help me?

Link to comment
Share on other sites

Forget editing the header. Wrap your whole page into a div tag and then edit your background image from your stylesheet. Make sure you set the page layout within the div to be transparent. i.e. .innerpagelayout { background: transparent; }. Place the image you want displayed in your body tag, i.e, BODY { background-image: url('http://whateveraddress.gif'); }

 

Good Luck!

Link to comment
Share on other sites

  • 5 weeks later...
I try to use an image as background

I edited the header.php and by adding the background="myimage.jpg" and loaded the image in the same folder as the header file but is not showing...Can somebody tell help me?

 

Do you mean like this ?

where I use a background image (simple gradient) repeated on the x-axis.

Link to comment
Share on other sites

  • 9 months later...

Archived

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

×
×
  • Create New...