0
Welcome Guest! Login
0 items Join Now

Varying background images using maincol

  • Varying background images using maincol

    Posted 17 years 2 weeks ago
    • Hi,
      I'm displaying a background image on my site having modified the template css (see below)

      #maincol {
      padding: 60px 20px;
      background: #fff url(/images/gallery3/Background.jpg)0 0 no-repeat;
      }

      This works fine but obviously displays the same image on all pages. What would be the best way of displaying different backgrounds for different pages? I could use the 'contentpaneopen' class but that doesn't give me a big enough area to display the image.
      Any help would be appreciated. Many thanks.
      John

      The site can be viewed at :
      www.newdawnadventures.co.uk

      It's still work-in-progress....
  • Re: Varying background images using maincol

    Posted 17 years 2 weeks ago
    • Anyone? Help!!
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Varying background images using maincol

    Posted 17 years 2 weeks ago
  • Re: Varying background images using maincol

    Posted 17 years 2 weeks ago
    • Thanks, that looks to be just what I need, I'll give it a go.
      Only one thing - in his code there is a 'find and replace' instruction on what appears to be identical code:

      background: <?php echo $bg_color; ?> url(templates/<?php echo $mainframe->getTemplate(); ?>/images

      Any idea what the change was meant to be? Cheers.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Varying background images using maincol

    Posted 17 years 2 weeks ago
    • If you find what you're supposed to look for, just replace it with the new code. :)



      $bg_image becomes $yourbackgroundname
    • Say no to Internet Explorer 6.
      twitter.com/mark_up

Time to create page: 0.067 seconds