Results 1 to 8 of 8
  1. #1
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    help question HELP! - Sidebox Header Background Color

    I'm killing myself here - this ought to be easy.

    I've been up and down my stylesheet, but I can't get the sidebox headers to have a background color.

    I've tried modifying .leftBoxHeading, but no results.

    Is there a trick here?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: HELP! - Sidebox Header Background Color

    The stock Zencart 'classic' template uses images as sidebox headers. Search your stylesheet for 'tile_back.gif'. Remove that, then change the background-color.

    Don't forget to do all this in your CUSTOM template - version 1.4 is near.

  3. #3
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: HELP! - Sidebox Header Background Color

    OK...great idea, but...it's harder than that.

    First to clarify - the tile_back.jpg is in the classic stylesheet - good guggestion, but...

    I'm using the 'BareBones' template - so it doesn't include the tile_back.jpg.

    And...I don't want to make the center column use this header color - only the sideboxes.

    More suggestions?....

  4. #4
    Join Date
    Nov 2008
    Location
    Seattle, WA
    Posts
    52
    Plugin Contributions
    0

    Default Re: HELP! - Sidebox Header Background Color

    Ive been having i think maybe a similar problem, http://www.zen-cart.com/forum/showthread.php?t=112964

    At one point I was trying to find tile_back.jpg to remove it and see if that removed the grey lines I have. I realized quickly this likely isnt what I needed. I think - but am not sure, that the images folder in the defult template is somehow also used. not sure but if you delete this file out of that folder that might do it. Hope this helps.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: HELP! - Sidebox Header Background Color

    It looks like the background-color statement in .leftBoxHeading is commented out in that template - have you removed the /* and */?

  6. #6
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: HELP! - Sidebox Header Background Color

    I'm having an almost identical problem here.

    I'm using the following code in my main stylesheet.css:

    .rightBoxHeading, .leftBoxHeading {
    background:transparent url(../images/button-bg.gif) repeat-x;
    }

    h3.rightBoxHeading, h3.leftBoxHeading {
    background:transparent url(../images/button-bg.gif) repeat-x;

    However, the button background just simply will not load! Where am I going wrong??

    I've also tried:

    .rightBoxHeading, .leftBoxHeading {
    background-image url(../images/button-bg.gif) repeat-x;
    }

    h3.rightBoxHeading, h3.leftBoxHeading {
    background-image url(../images/button-bg.gif) repeat-x;

    NOTHING!?!??!

    I've tried many, many permutations and syntax but just can't get the background image to work.

    Please, does anyone know what I'm doing wrong??

  7. #7
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: HELP! - Sidebox Header Background Color

    Quote Originally Posted by limelites View Post
    I'm having an almost identical problem here.

    I'm using the following code in my main stylesheet.css:

    .rightBoxHeading, .leftBoxHeading {
    background:transparent url(../images/button-bg.gif) repeat-x;
    }

    h3.rightBoxHeading, h3.leftBoxHeading {
    background:transparent url(../images/button-bg.gif) repeat-x;

    However, the button background just simply will not load! Where am I going wrong??

    I've also tried:

    .rightBoxHeading, .leftBoxHeading {
    background-image url(../images/button-bg.gif) repeat-x;
    }

    h3.rightBoxHeading, h3.leftBoxHeading {
    background-image url(../images/button-bg.gif) repeat-x;

    NOTHING!?!??!

    I've tried many, many permutations and syntax but just can't get the background image to work.

    Please, does anyone know what I'm doing wrong??
    try
    background-image: url('../images/button-bg.gif');

    That's the way I have it in my stylesheet.

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

    Default Re: HELP! - Sidebox Header Background Color

    The quotes aren't needed (they don't hurt), but the colon is a necessity:

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

    Background-image can only handle the image name, not the repeat. Either move the repeat to its own line

    background-repeat: repeat-x;

    or use the shorthand

    background: url(../images/button-bg.gif) repeat-x;


    and you don't want to style the same elements twice:

    .rightBoxHeading, .leftBoxHeading {
    ...

    h3.rightBoxHeading, h3.leftBoxHeading {

    Just the second set will do the job right.
    Last edited by gjh42; 1 Feb 2009 at 04:02 AM.

 

 

Similar Threads

  1. New template - Quick sidebox header background color change. Any ideas?
    By georgespokerstore in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Aug 2009, 11:42 PM
  2. Help...How to change sidebox header background color?
    By meiziwo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Jul 2008, 10:15 AM
  3. Change background color of shopping cart sidebox header?
    By sunflowertami in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Jun 2008, 01:19 AM
  4. Help changing left sidebox background color
    By jackalneo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 May 2008, 05:21 AM
  5. Help - Changing a background color in my header
    By CheapStairParts in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Mar 2008, 08:29 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