Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default How do I change the background color in the left sidebox?

    I've been trying to find the place in stylesheet.css where I can make both the left sidebox & main content transparent...I want to be able to see a background image I placed in body {}.

    I've tried every sidebox, left sidebox, column related id & class I can fine in the css, but I still see that off orange background.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by OrcaSoul View Post
    I've been trying to find the place in stylesheet.css where I can make both the left sidebox & main content transparent...I want to be able to see a background image I placed in body {}.

    I've tried every sidebox, left sidebox, column related id & class I can fine in the css, but I still see that off orange background.
    open your stylesheet.css

    find the following declarations add a background:transparent; as indicated by the highlight.

    #navColumnOne, #navColumnTwo {
    vertical-align: top;
    padding: 0 0 5px 0;
    font-size: 1em;
    background:transparent;
    }

    #navColumnOneWrapper, #navColumnTwoWrapper {
    margin: 0 0.5em;
    background:transparent;
    }

  3. #3
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by clydejones View Post
    open your stylesheet.css

    find the following declarations add a background:transparent; as indicated by the highlight.

    #navColumnOne, #navColumnTwo {
    vertical-align: top;
    padding: 0 0 5px 0;
    font-size: 1em;
    background:transparent;
    }

    #navColumnOneWrapper, #navColumnTwoWrapper {
    margin: 0 0.5em;
    background:transparent;
    }
    OK, that wasn't in the copy of the default stylesheet.css - I finally located it in the classic version.

    I copied your text, saved it, and reloaded the page.

    It didn't change anything.

    EDIT:

    I just tried something that did work - I commented out the color in the secment

    Code:
    #navColumnOne {
    	/*background-color: #FFCC99;*/
    	}
    I now get a white background, but at least it's changed!

    Now, where is the best place to place an image in the entire background?

    I have it in

    Code:
    body {
    	margin: 0;
    	/*font-family: verdana, arial, helvetica, sans-serif;
    	font-size: 62.5%;*/
    	font-size: 86%; 
    	font-family: trebuchet ms, tahoma, verdana, arial, sans-serif; 
    	color: #000000;
    	/*background-color: #e5edf5;*/
    	background: #fff url('..images/harbor_sceneSketch.gif');
    	}
    but it's not showing up - is it overwritten somewhere else?
    Last edited by OrcaSoul; 2 Feb 2010 at 07:14 AM.

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I change the background color in the left sidebox?

    check the #mainWrapper declaration in your stylesheet.css

    check to see if it has a background-color

  5. #5
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by clydejones View Post
    check the #mainWrapper declaration in your stylesheet.css

    check to see if it has a background-color
    It did, background-color: #fffffff;

    I changed that to
    background: #fff url('..images/harbor_sceneSketch.gif');

    No visible change.

    This is what works in my original page...I also tried it without the '#fff ', no difference.

    Now, I'm assuming that - since both the css & image folders are under the same /includes/templates/orcatools/ folder, that the '..images/harbor_sceneSketch.gif' will locate it correctly. I also have another image (the background for the header) that is in the same folder, so I'm pretty sure that's correct.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by OrcaSoul View Post
    It did, background-color: #fffffff;

    I changed that to
    background: #fff url('..images/harbor_sceneSketch.gif');

    No visible change.

    This is what works in my original page...I also tried it without the '#fff ', no difference.

    Now, I'm assuming that - since both the css & image folders are under the same /includes/templates/orcatools/ folder, that the '..images/harbor_sceneSketch.gif' will locate it correctly. I also have another image (the background for the header) that is in the same folder, so I'm pretty sure that's correct.
    taking a look at your site would be a great help.

  7. #7
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by clydejones View Post
    taking a look at your site would be a great help.
    Unfortunately it's still on the local server. I could try to upload it tomorrow (it's just past midnight here in Seattle and I need to get some rest). I'll give it a try, hopefully not a major problem on GoDaddy...

    I'll post when it's ready.

    Thanks for the help.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I change the background color in the left sidebox?

    You could avoid a lot of guessing and trial-and-error if you install Firefox and its Web Developer and Firebug extensions.

    In particular, Firebug will tell you all the style rules that apply to an element you inspect - useful if you don't know what is causing an effect.

    Rather than searching the stylesheet for a selector that looks like it might be relevant, use the tools to find the exact selector that applies to an element and find or add a rule for it in the stylesheet. There are hundreds of unstyled selectors in the code, just waiting for somebody to need them.

  9. #9
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by gjh42 View Post
    You could avoid a lot of guessing and trial-and-error if you install Firefox and its Web Developer and Firebug extensions.

    In particular, Firebug will tell you all the style rules that apply to an element you inspect - useful if you don't know what is causing an effect.

    Rather than searching the stylesheet for a selector that looks like it might be relevant, use the tools to find the exact selector that applies to an element and find or add a rule for it in the stylesheet. There are hundreds of unstyled selectors in the code, just waiting for somebody to need them.
    I wasn't aware of Firebug - a quick glance show it may be a good thing to look at...I'll get it installed and see if it answers the problem...

    Thanks!

  10. #10
    Join Date
    Jan 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: How do I change the background color in the left sidebox?

    Quote Originally Posted by gjh42 View Post
    You could avoid a lot of guessing and trial-and-error if you install Firefox and its Web Developer and Firebug extensions.
    OK, well...I had one continual reaction while watching the intro...
    W O W

    This really should be part of the mandatory requirements for working with Zen Cart...

    Looks like I'm going to be doing some reading today...

    Thanks again.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how to change the background color?
    By lina0962 in forum Basic Configuration
    Replies: 1
    Last Post: 9 Aug 2010, 12:40 PM
  2. How to change the background color??
    By msl365 in forum General Questions
    Replies: 3
    Last Post: 21 Apr 2009, 10:57 PM
  3. How to change color of the left panel
    By Jeevie in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Sep 2007, 06:07 AM
  4. How to change the background color of messagestack
    By zerocool in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Jan 2007, 07:33 PM
  5. Replies: 4
    Last Post: 30 Oct 2006, 01:08 AM

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