Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

want a different background on different pages


3 replies to this topic

#1 cocktails3

  • Community Member
  • 48 posts
  • Real Name:Ray

Posted 21 November 2009, 04:47

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

#2 germ

  • Community Member
  • 13,584 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 21 November 2009, 15:49

View Postcocktails3, on 21 November 2009, 04:47, said:

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.

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#3 cocktails3

  • Community Member
  • 48 posts
  • Real Name:Ray

Posted 21 November 2009, 23:28

Thanks for your help

#4 bkellum

  • Community Member
  • 4,893 posts
  • Real Name:Bill Kellum
  • Gender:Male
  • Location:Chicago

Posted 28 November 2009, 04:45

View Postcocktails3, on 21 November 2009, 04:47, said:

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.[img]http://forums.oscommerce.com/public/style_emoticons/default/thumbsup.gif[/img]
Bill Kellum

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