Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Backround image?

    Hey Haredo if your still around,.. Or anyone that knows

    Now I'm looking to change the background to an image. I am assuming that it's in the CSS where I just changed the main page width? If so, or not... how would that be done?



    Thank you again!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Backround image?

    Ze,
    On the tab on the top of this page called Tutorials/FAQ

    1. search for:
    2. background image
    3. https://www.zen-cart.com/tutorials/i...hp?article=257

  3. #3
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: Backround image?

    Do I add this?

    background-image: url(../images/tile_back.gif);


    To this?


    /*wrappers - page or section containers*/
    #mainWrapper {
    background-color: #383E44;
    text-align: left;
    width: 850px;
    vertical-align: top;
    border: 1px solid #9a9a9a;
    }


    ???

  4. #4
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: Backround image?

    Quote Originally Posted by haredo View Post
    Ze,
    On the tab on the top of this page called Tutorials/FAQ

    1. search for:
    2. background image
    3. https://www.zen-cart.com/tutorials/i...hp?article=257


    That's kewl,.. is this just for boxes or the main page background?

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Backround image?

    Quote Originally Posted by zerocool9455 View Post
    Do I add this?

    background-image: url(../images/tile_back.gif);


    To this?


    /*wrappers - page or section containers*/
    #mainWrapper {
    background-color: #383E44;
    text-align: left;
    width: 850px;
    vertical-align: top;
    border: 1px solid #9a9a9a;
    }


    ???
    Z,
    Yes, make sure you upload this new image to:

    1. includes/ templates/ darkness/ images
    2. It is the principle behind any background image to the site weather sidesboxes, headers, mainWrapper or footers

  6. #6
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: Backround image?

    You have been very helpful tonight! Thank you!

    What's The default screen size?

    and should I remove the background-color? (or does it not make a difference?)

  7. #7
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: Backround image?

    ?

    Wouldn't that just change the image of the whole template box and not the background image of the whole page? I'm looking change the whole background page image.

  8. #8
    Join Date
    May 2010
    Posts
    142
    Plugin Contributions
    0

    Default Re: Backround image?

    Quote Originally Posted by zerocool9455 View Post
    ?

    Wouldn't that just change the image of the whole template box and not the background image of the whole page? I'm looking change the whole background page image.
    I am still new to Zencart, so if my suggestions are wrong,my apologies in advance

    If you want to add a background image behind the main content box aka page,
    then add this to Your Custom template css stylesheet:

    #navSuppWrapper{ background:url('../images/your image.jpg'); width: 100% or whatever you want;}

    If you mean that you want the whole page to display the image and you don't want a "page" to be displayed on top of the image,then you can make the "page" transparent by adjusting the following in your Custom template css stylesheet:

    #mainWrapper{ background:here you can try to use the word transparent or you can just add an additional#infront of your color code eg ##000000 and it will render it transparent, I found this out by accident when modifying Zen template stylesheet..hehe..but it could also maybe just have been a fluke}

    Or else you can use the following standard css codes for transparency:

    selector {
    filter: alpha(opacity=50); /* internet explorer */
    -khtml-opacity: 0.5; /* khtml, old safari */
    -moz-opacity: 0.5; /* mozilla, netscape */
    opacity: 0.5; /* fx, safari, opera */
    }
    Last edited by enigma666666; 15 May 2010 at 12:02 AM.

  9. #9
    Join Date
    May 2010
    Posts
    142
    Plugin Contributions
    0

    Default Re: Backround image?


    Made a mistake in the post above but couldn't edit post as apparently you have to do it within 7minutes!

    Please ignore the above. Here is the post again with my edits to it:

    If you want to add a background image behind the main content box aka page,
    then add this to Your Custom template css stylesheet:

    body{ margin: 0; padding: 0; text-align: center; font-family: tahoma, verdana, arial, helvetica, sans-serif; font-size: 12px; color: #000000;background: #E0E0E0 url('../images/your image.jpg'); }


    If you mean that you want the whole page to display the image and you don't want a "page" to be displayed on top of the image,then you can make the "page" transparent by adjusting the following in your Custom template css stylesheet:

    #mainWrapper{ background:here you can try to use the word transparent}

    Or else you can use the following standard css codes for transparency:

    selector {
    filter: alpha(opacity=50); /* internet explorer */
    -khtml-opacity: 0.5; /* khtml, old safari */
    -moz-opacity: 0.5; /* mozilla, netscape */
    opacity: 0.5; /* fx, safari, opera */
    }

  10. #10
    Join Date
    May 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: Backround image?

    Hey enigma,...

    Thanks for the help,.. I just wanted a nice background image instead of a basic blank one is all. So when the PHP template is placed on top it looks more interesting. I have another question,.. if I add this...

    body{ margin: 0; padding: 0; text-align: center; font-family: tahoma, verdana, arial, helvetica, sans-serif; font-size: 12px; color: #000000;background: #E0E0E0 url('../images/your image.jpg'); }


    Then how big is the image supposed to be? 975px or something? Is there anyway to make it like 100% in stead of a number? I would like to insert it as close to most default screen size used today with a 100% included to make it fit the sides perfectly,.. how is that done?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Backround image
    By Little El in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Jul 2010, 12:20 PM
  2. Adding backround image to one page only
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Feb 2010, 11:12 PM
  3. Howto add a image in backround?
    By kenobi in forum General Questions
    Replies: 1
    Last Post: 13 Aug 2007, 10:14 PM
  4. change white backround to image
    By g0d4lm1ty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Dec 2006, 04:45 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