Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2006
    Location
    Australia
    Posts
    96
    Plugin Contributions
    0

    Background image for site

    Hi, please can i have help on changing the colour background to a simple pattern background. I want to use the pale blue (main_bg.gif) on the website www.earlcraftncake.com and use it on www.earlcraftncake.com/cart.
    I have been playing around for ages and just cant get the code right in the stylesheet, thanks Rod
    Rod

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

    Default Re: Background image for site

    Copy the image to YOUR_TEMPLATE/images/

    Add to your stylesheet under the BODY selector:

    background-image: ur(../images/main_bg.gif);

  3. #3
    Join Date
    May 2006
    Location
    Australia
    Posts
    96
    Plugin Contributions
    0

    Default Re: Background image for site

    Um I still havnt got it right, could you please correct the section for me.

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    background-image: url(....images/main_bg.gif);
    }


    Thanks, Rod
    Rod

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Background image for site

    just copy and paste this over your body rule:

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    background: url(../images/main_bg.gif) repeat;
    background-attachment: fixed;
    }
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Background image for site

    and to get ahead of your next question use the following lines in the #logoWrapper and #mainWrapper rules:

    background: url(../images/main_bg.gif) repeat;
    background-attachment: fixed;
    This will place the background like on your other page
    Last edited by barco57; 10 Sep 2006 at 03:37 AM.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    May 2006
    Location
    Australia
    Posts
    96
    Plugin Contributions
    0

    Re: Background image for site

    Thanks Kim and Barco57, but still no joy. not sure about the #mainWrapper and logoWrapper rules though. i lost my logo ( restored back to before) here are the three sections discussed from my stylesheet

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #e5edf5;
    }


    #logoWrapper{
    background-image: url(../images/header_bg.jpg);
    background-repeat:no-repeat;
    /*background-repeat: repeat-x;*/
    background-color: #ffffff;
    height:75px;



    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 750px;
    vertical-align: top;
    }

    Oh , also i am a little bit confussed with the url section, do i type in my full path of url(http//www.........etc/images/main_bg.gif); or is it left with the two periods url(../images etc) Thanks , rod
    Rod

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Background image for site



    do you want solid background or the grid pattern?

    If you want the grid pattern then the body rule I posted works. Tested in firefox w/webdeveloper which lets me change your stylesheet dynamically and see the changes, so I know I can get the grid on the page background
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  8. #8
    Join Date
    May 2006
    Location
    Australia
    Posts
    96
    Plugin Contributions
    0

    Default Re: Background image for site

    Thanks barco57, yes i want the grid pattern, could you give a little more info on the stylesheet changes, thanks Rod
    Rod

  9. #9
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Background image for site

    you currently have:
    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;

    color: #000000;
    background-color: #e5edf5;

    }
    you want it to be like this exactly:
    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;

    background: url(../images/main_bg.gif) repeat;
    background-attachment: fixed;

    }
    items in green leave alone.
    items in red need to be changed from what you have to what I have.

    and yes url(../images/main_bg.gif) is the correct way to point to the images

    got it?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  10. #10
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Background image for site

    I think I screwed up the line should be:

    background-image: url(../images/main_bg.gif);
    I added the "-image" and removed the "repeat" at the end. the image will automatically repeat.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Background image cover entire background w/one image
    By oxicottin in forum Templates, Stylesheets, Page Layout
    Replies: 43
    Last Post: 3 Apr 2012, 03:18 PM
  2. Background image for site...
    By injected in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 5 Oct 2010, 06:59 PM
  3. Site Background Image
    By edeades in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 May 2009, 02:06 AM
  4. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM

Posting Permissions

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