Forums / Templates, Stylesheets, Page Layout / Change color of background in boxes in center column

Change color of background in boxes in center column

Locked

Views: 2,955

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
13 Apr 2008, 4:04 AM
#1
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Change color of background in boxes in center column

I have changed the background of my side boxes and of the mainwrapper. However, I can't figure out how to change the background of the "new products" box in the center column to match the color of the side boxes.

The website is https://www.jaylyns.com. Thanks for any help on this.

www.jaylyns.com (Note: Contains Adult Products)

13 Apr 2008, 4:35 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change color of background in boxes in center column

Find this in your stylesheet and add what is in red

.centerBoxWrapper {
        background-color: #FFCCFF;
	border: 1px solid #9a9a9a;
	height: 1%;
	margin: 1.1em 0;
	}

Zen-Venom Get Bitten

13 Apr 2008, 5:32 AM
#3
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Change color of background in boxes in center column

Thank you so much. Worked like a charm.:clap:

www.jaylyns.com (Note: Contains Adult Products)

2 Jun 2008, 6:18 AM
#4
raquelann avatar

raquelann

New Zenner

Join Date:
Jun 2007
Posts:
80
Plugin Contributions:
0

Re: Change color of background in boxes in center column

I don't have " .centerBoxWrapper " in my css file. (I am using Mother Earth template).
My website is www.oddsnsods.com.au.
I wish to change the background colour beind the texy area only in the centre column (not the categories).
Thanks
raquel

Raquel Cameron
Odds 'n' Sods - For Re-enactors
http://www.oddsnsods.com.au

2 Jun 2008, 12:02 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Change color of background in boxes in center column

There are many classes available in the code in Zen Cart (the code created by the interaction of the many php files, which is then rendered by your web browser). If the class you want to style is not already in the stylesheet, just add it and style it.

You can easily see the class you want to style by using a developer's tool in the browser -- Firebug in Firefox is often recommended. Or you can even find it by closely examining the code using the View Source menu-item in your browser.

In your case, since the main background is black, I'd recommend styling the centerColumn class to start with. It's probably already in your stylesheet, but if not, just add it. I always add a comment at the bottom of the default stylesheet then add any additional classes below that. Makes them easy to find later, and ensures they are the last read styles just in case tthat class is already styled up above in the stylesheet.

By the way, you need to seriously consider doing some image optimization. The images of people on your home page in particular are HUGE and are causing the site to load slowly.

Rob

Breakfast: the most important donut of the day.

3 Jun 2008, 4:20 AM
#6
raquelann avatar

raquelann

New Zenner

Join Date:
Jun 2007
Posts:
80
Plugin Contributions:
0

Re: Change color of background in boxes in center column

Thankyou so much for your help. I hope it now looks better and easier to read. I will begin work on the photo compressions once I am happy with the layout. Thankyou again.

Raquel Cameron
Odds 'n' Sods - For Re-enactors
http://www.oddsnsods.com.au

21 Aug 2008, 8:18 PM
#7
keith_s avatar

keith_s

New Zenner

Join Date:
Aug 2008
Posts:
18
Plugin Contributions:
0

Re: Change color of background in boxes in center column

I would like to change the color of the main page background that ia a very light grey or white now, to a color that is a bit more dark, but will match the colors of my website..... http://www.swingkingknives.net/shop

Can you A: tell me were to change the background color of the main page.
And B: suggest a color to mach the basic colors on my website, I dont know the color codes that well yet?

Thank you very much!

21 Aug 2008, 11:19 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change color of background in boxes in center column

To change what I believe you want changed - find this in your current

/includes/templates/classic/stylesheet.css and alter what is in red

#mainWrapper {
	background-color: #ffffff;
	text-align: left;
	width: 85%;
	vertical-align: top;
	border: 1px solid #000000;
	}

As to color try 9a9a9a - you have are using the green template so I have little to base a selection on

Zen-Venom Get Bitten