Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header background


Guest

Recommended Posts

Hi,

In the stylesheet the line for the header bg colour is this:

 

TR.header {

background: #A11F0F;

 

How do I change it to look for a file instead?

Link to comment
Share on other sites

In includes/header.php, find you first instance of...

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">

 

and add a simple "bg" to the end of the class, like this...

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="headerbg">

 

Then, go to stylesheet.css and add this class...

TR.headerbg {
 background-image: url(http://www.agiftco.com/images/headertest.jpg);
 background-attachment: fixed;
 background-repeat: repeat;
}

 

That's my actual code for the URL, simply replace it with your own image URL. Walaa, that's it.

 

See a sample HERE. Keep in mind, that is just a simple gradient I threw together for testing purposes, but you get the point.

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Link to comment
Share on other sites

Cheers.... the problem was there was another piece of code in my stylesheet adding a backround colour instead of the image. Once this was removed it sits there sweetly. Not bad for my first every shop... if I do say so myself.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...