Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

want a different background on different pages


Guest

Recommended Posts

I want to put a different background on my contact us page and another one on the about us page. When I change the bg in the style it changes it for ALL pages. How can I do it for individual pages. Thanks in advance for any help

Link to comment
Share on other sites

I want to put a different background on my contact us page and another one on the about us page. When I change the bg in the style it changes it for ALL pages. How can I do it for individual pages. Thanks in advance for any help

One way would be to take the CSS code that does the background out of the stylesheet and put it in the <head> section of each page as an inline style.

 

Something like this:

 

<style type="text/css">
body
{
 background: #000000;
 background-image: url('web6.jpg');
 background-repeat: repeat
}
</style>

Then you can individualize it for any page.

 

I'm sure there is more than one way to accomplish this.

 

This is only one method available to you.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I want to put a different background on my contact us page and another one on the about us page. When I change the bg in the style it changes it for ALL pages. How can I do it for individual pages. Thanks in advance for any help

 

 

Another option would be to use the Simple Template System (STSv4.5.8) that allows you to template specific pages or all pages, infoboxes, etc.thumbsup.gif

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...