Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Header Background Pic


RareIntent

Recommended Posts

Posted

I want to try to put a 100% wide gif in the header where the logo area is as a background and have the logo sit on top of that....where and how do I do that?

 

Thanks

Posted

You need to surround the table that holds the logo (first one in includes/header.php). Use something like this:

<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" background="some_image.gif">
 <tr>
   <td>
     Original code is here
   </td>
  </tr>
</table>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Actually I did something different than that (and a bit easier). Though I don't know if is the "right" thing to do.

 

The header in default osc has its own background in stylesheet.css so I just changed the stylesheet:

 

From:

 

TR.header {

background: #ffffff;

}

 

To:

 

TR.header {

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

/*background: #4c0c04;*/

}

 

As you can see I just commented out the background color, and added in background image. This covers the entire header area just fine (at least as far as I can see). If I have messed up somewhere someone let me know :D

I am able to use a small image and just have it seamlessly tile in the background.

 

RW

 

PS. you can see this in action at:

MutzigCreations.com

 

 

I want to try to put a 100% wide gif in the header where the logo area is as a background and have the logo sit on top of that....where and how do I do that?

 

Thanks

Posted
Actually I did something different than that (and a bit easier). Though I don't know if is the "right" thing to do.

 

The header in default osc has its own background in stylesheet.css so I just changed the stylesheet:

 

From:

 

TR.header {

  background: #ffffff;

}

 

To:

 

TR.header {

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

/*background: #4c0c04;*/

}

 

As you can see I just commented out the background color, and added in background image.  This covers the entire header area just fine (at least as far as I can see).  If I have messed up somewhere someone let me know  :D

I am able to use a small image and just have it seamlessly tile in the background.

 

RW

 

PS. you can see this in action at:

MutzigCreations.com

 

I was thinking the same and looking at your shop I can only say it looks damn good, hat's off !

Posted
Actually I did something different than that (and a bit easier). Though I don't know if is the "right" thing to do.

 

The header in default osc has its own background in stylesheet.css so I just changed the stylesheet:

 

From:

 

TR.header {

  background: #ffffff;

}

 

To:

 

TR.header {

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

/*background: #4c0c04;*/

}

 

As you can see I just commented out the background color, and added in background image.  This covers the entire header area just fine (at least as far as I can see).  If I have messed up somewhere someone let me know  :D

I am able to use a small image and just have it seamlessly tile in the background.

 

RW

 

PS. you can see this in action at:

MutzigCreations.com

Good job. :) I thought you were saying you wanted a background for the whole shop.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...