Results 1 to 8 of 8
  1. #1

    Default change background on either side from a colour to an image?

    How do I change the background on either side of my page to an image instead of just a colour?

    www.mccarthyhighland.com/shop

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default Re: change background on either side from a colour to an image?

    What sort of image?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Oct 2006
    Posts
    138
    Plugin Contributions
    0

    Default Re: change background on either side from a colour to an image?

    this is what you need to change, will need to take out background colour and place in image. Exact code I am not sure of unless I played with it.
    http://tutorials.zen-cart.com/index.php?article=201
    [FONT=Fixedsys]We live in a rainbow of chaos ~ Paul Cezanne[/FONT]

  4. #4

    Default Re: change background on either side from a colour to an image?

    Kim, I have a background gif, the kind you tile to fill the space, that I'm considering using.

    Zas, could you let me know what the code should be for me to do this? I'm running out of time to get this site up and running, and I don't know enough about CSS coding to handle this yet.

    Thanks ,

    Highlander

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,158
    Plugin Contributions
    12

    Default Re: change background on either side from a colour to an image?

    In your stylesheet

    Code:
    body{
    background-image: url(/includes/templates/custom/images/bg.gif);
    }
    The JSWeb Team
    www.JSWeb.co.uk
    PCI Compliant Host Provider (UK/IRELAND) - ZenCart Specialists

  6. #6

    Default Re: change background on either side from a colour to an image?

    thanks. I trid the code you supplied, but the image didn't show up? The background just changed to white? Do I need to do something for the image to "tile" and fill in all the available space around the central "page"?

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,145
    Plugin Contributions
    0

    Default Re: change background on either side from a colour to an image?

    Try putting your image in the line I've higlighted in red. Pick a background color close to the main color in your image and replace the black that I have (000000).
    Code:
    #mainWrapper {
    	background-color: #000000;
      background-image: url('../images/space011.jpg');
    	text-align: left;
    	width: 100%;
    	vertical-align: top;
    	}
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8

    Default Re: change background on either side from a colour to an image?

    Thanks! I discovered by playing around that your chunk of code needs to be in the " body { " portion of the stylesheet. Works fine......but I didn't like the background image afterall.

 

 

Similar Threads

  1. _LRG image displaying at Small Image size
    By sopretty in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2006, 09:28 PM
  2. Why no support on this site - Sidebox image size question - need help please
    By JLA in forum Templates, Stylesheets, Page Layout
    Replies: 30
    Last Post: 17 Aug 2006, 10:08 PM
  3. How change the background colour?
    By canadianwebstar in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 24 Jun 2006, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •