Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Newbie Needing SOme Help With Colour Changing

Newbie Needing SOme Help With Colour Changing

Locked

Views: 3,006

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
27 Mar 2008, 4:11 PM
#1
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Newbie Needing SOme Help With Colour Changing

Someone designed and built the website for me 2 years ago and now with him having a new job and being mega busy i'm having to do it but the problem is i don't have a clue.

I'm trying to firstly change all the headers to silver with a hairline black border and then the sideboxes to white with a hairline black border and black text.

Can anyone help please?

https://www.dpmautostyling.co.uk

Damian

27 Mar 2008, 4:31 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

DPM:

I'm trying to firstly change all the headers to silver with a hairline black border

Locate the override folders for the site

A. includes/ templates/ your_template/ templates/ stylesheet.css

Look for:

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #ffffff;}

Delete and Add the following:

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #FF0000;
border: solid 2px #000000;}

The red lettering you will edit to your needs. Like silver or any border color

27 Mar 2008, 4:46 PM
#3
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Doesn't seem to be working, this is so confusing!

Damian

27 Mar 2008, 5:01 PM
#4
fastcar avatar

fastcar

New Zenner

Join Date:
Dec 2007
Posts:
28
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

You will find that the heading and box colours are not actually controlled by the stylesheet, instead, whoever originally made the layout has actually used images:

http://www.dpmautostyling.co.uk/catalogue/includes/templates/future_zen/images/sidebox_header_bg.gif

http://www.dpmautostyling.co.uk/catalogue/includes/templates/future_zen/images/sidebox_content_bg.gif

27 Mar 2008, 5:09 PM
#5
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

So what should i do now? Is it best to change it and go to stylesheet or just ebit the images?

Thanks

27 Mar 2008, 6:24 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

Definitely scrap those images (they're nothing but rectangles of solid color anyway - silly way to do it) and use the stylesheet.

27 Mar 2008, 9:31 PM
#7
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

How do i go about doing this? Will it alter the size of thngs aswell?

27 Mar 2008, 10:11 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

The existing images have nothing to do with the size of boxes, so eliminating them won't hurt.

This is part of your existing stylesheet:```
/sideboxes/

.columnLeft, {
padding-left: 8px;
}

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #ffffff;
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover{
color: #FFFFFF;
text-decoration: none;
}

.leftBoxHeading, .rightBoxHeading {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 2px;
background-image:url(../images/sidebox_header_bg.gif);
background-repeat:no-repeat;
padding: 0.5em 0.2em;
}

.centerBoxWrapper {
margin: 0;
background-image:url(../images/title_cap_left.gif);
background-repeat:no-repeat;
background-position:top left;
}

.centerBoxHeading {
margin: 0;
height:32px;
background-image:url(../images/title_cap_right.gif);
background-repeat:no-repeat;
background-position:top right;
padding: 0.5em 0.2em;
}

.leftBoxContainer {
margin-top: 1em;
}

.leftBoxContainer a:link, .rightBoxContainer a:link {
color: #18089c;
}

.leftBoxContainer a:visited, .rightBoxContainer a:visited {
color: #18089c;
}

.leftBoxContainer a:hover, .rightBoxContainer a:hover {
color: #18089c;
}

.sideBoxContent {
background-image:url(../images/sidebox_content_bg.gif);
background-repeat:no-repeat;
background-position:bottom;
padding: 0.4em;
}

.sideBoxContentB {
margin-left: -2px;
background-image:url(../images/sidebox_content_bg.gif);
background-repeat:no-repeat;
background-position:bottom;
padding: 0.4em;
}


What you describe does not sound like it will require any images, so you can delete every line in this section with background-image:, background-repeat:, or background-position:, and insert

background-color: #abcdef;

wherever it is needed (adjust color as desired). Try this ```
/*sideboxes*/

.columnLeft, {
padding-left: 8px;
}

.leftBoxContainer {
margin-top: 1em;
background-color: #ffffff;/*white sideboxes*/
}

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #000000;/*black text*/
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover{
color: #333333;/*gray hover text*/
}

.leftBoxHeading, .rightBoxHeading {
margin: 0 0 2px 0;
border: 1px solid #000000;
padding: 0.5em 0.2em;
}

.centerBoxWrapper {
margin: 0;
}

.centerBoxHeading {
margin: 0;
height:32px;
padding: 0.5em 0.2em;
}

.leftBoxContainer {
margin-top: 1em;
}

.leftBoxContainer a:link, .rightBoxContainer a:link {
color: #000000;
}

.leftBoxContainer a:visited, .rightBoxContainer a:visited {
color: #000000;
}

.leftBoxContainer a:hover, .rightBoxContainer a:hover {	
color: #333333;
}

.sideBoxContent {
padding: 0.4em;
}

.sideBoxContentB {
margin-left: -2px;
padding: 0.4em;
}
```I leave the rest to you, as your description is open to interpretation and you know exactly how you want it to look. You can apply styling to a combination of container, heading and content elements as required.
27 Mar 2008, 11:43 PM
#9
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Thanks for your reply. I've done the changes as above but it doesn't seem to have altered anything?

28 Mar 2008, 10:27 AM
#10
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Ahhh, got it working but when i do it loses the bits down the side. Anyone know how i can keep them whilst still doing the change as above?

Thanks

29 Mar 2008, 5:37 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

Here is a start.

body {
    background-color: #000000;
    ...
    }

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
border: 1px solid #000000;
background-color: silver;
font-weight: bold;
color: #000000;
height: 1%;
width: 99.8%;
}

#navMain ul, #navSupp ul, #navCatTabs ul  {
margin: 0;	
padding:  0.1em 0.4em;
list-style-type: none;
text-align: center;
line-height: 1.5em;
}

#navMain ul li, #navSupp ul li, #navCatTabs ul li {
display: inline;
white-space: nowrap;
}

#navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
text-decoration: none;
padding: 0em;
padding-left: 1em;
margin-left: 0.3em;	
}
/*sideboxes*/

.columnLeft, {
padding-left: 8px;
}

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #000000;
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover{
color: #333333;
text-decoration: none;
}

.leftBoxHeading, .rightBoxHeading {
margin: 0 0 2px 0;
background-color: silver;
border: 1px solid #000000;
padding: 0.5em 0.2em;
}

.centerBoxWrapper {
margin: 0;
background-image:url(../images/title_cap_left.gif);
background-repeat:no-repeat;
background-position:top left;
}

.centerBoxHeading {
margin: 0;
height:32px;
background-image:url(../images/title_cap_right.gif);	
background-repeat:no-repeat;
background-position:top right;
padding: 0.5em 0.2em;
}

.leftBoxContainer {
margin-top: 1em;
}

.leftBoxContainer a:link, .rightBoxContainer a:link {
color: #18089c;
}

.leftBoxContainer a:visited, .rightBoxContainer a:visited {
color: #18089c;
}

.leftBoxContainer a:hover, .rightBoxContainer a:hover {	
color: #18089c;
}

.sideBoxContent {border: 1px solid #000000;
padding: 0.4em;
}
31 Mar 2008, 3:26 PM
#12
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Thanks again mate, tried those but seems to send things a bit wierd. Changes the 3 left sidebox banners to how i want them but keeps the boxes underneather them the same colour as now. What i'm trying to do on the homepage is keep the layout exactly the same but change all the left sideboxes and box headers to black borders, white backround and black text but keep that small gap inbetween the banner and the box underneath it. It's driving me crazy! :frusty:

1 Apr 2008, 6:56 AM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

The previous list I posted was somehow missing some of the required properties. This will do it for the sideboxes:

/*sideboxes*/

.columnLeft {
padding-left: 8px;
}

.leftBoxContainer {
margin-top: 1em;
}

h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #000000;/*black text*/
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover{
color: #333333;/*gray hover text*/
}

.leftBoxHeading, .rightBoxHeading {
margin: 0 0 2px 0;
border: 1px solid #000000;
background-color: silver;
padding: 0.5em 0.2em;
}

.centerBoxWrapper {
margin: 0;
}

.centerBoxHeading {
margin: 0;
height:32px;
padding: 0.5em 0.2em;
}

.leftBoxContainer {
margin-top: 1em;
}

.leftBoxContainer a:link, .rightBoxContainer a:link {
color: #000000;
}

.leftBoxContainer a:visited, .rightBoxContainer a:visited {
color: #000000;
}

.leftBoxContainer a:hover, .rightBoxContainer a:hover {	
color: #333333;
}

.sideBoxContent {
border: 1px solid #000000;
background-color: #ffffff;/*white sideboxes*/
padding: 0.4em;
}

.sideBoxContentB {
margin-left: -2px;
padding: 0.4em;
}
1 Apr 2008, 11:34 AM
#14
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Perfect, thanks bud!

Now i'm trying to get the white part at the top where my logo is to match the side and be black but when i change it it makes the whole middle section black, why is that?

Also trying to get the top bar to match the silver with black text and border instead of the blue and white how it is now but can't find that anywhere!

I don't know how you guys get so good at this, everything i try to do beats me!

1 Apr 2008, 1:36 PM
#15
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Right i've managed to change the colour of the nav main but it's slightly to the right by 1px, i can't figure out why this is?

Still trying to get the white part at the top of the page where my logo is to match the side and be black but when i change it it makes the whole middle section black, why is that?

1 Apr 2008, 3:21 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

You need to learn the method we use to find things so easily.

Install Firefox and get its extensions Web Developer and Firebug (some prefer one, some prefer the other).

Use the Web Developer's Information > Display Element Information button, and click on any item you want to know about. The yellow box will show the element's identity and all of its ancestors and children, among other things. You can take this to the stylesheet and apply styling as you wish.

1 Apr 2008, 3:34 PM
#17
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

Now i'm even more confused, i've downloaded it and tried to register with no joy.

1 Apr 2008, 3:40 PM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

That's odd... unfortunately I can't offer any suggestions as to why Firefox would not be installing on your computer. It would require a FF expert with full access to your system to say for sure.
If you give more details about what you have done and error messages you have gotten, someone may have an idea.

1 Apr 2008, 3:46 PM
#19
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Newbie Needing SOme Help With Colour Changing

I'm in Firefox but unregistered and when i bring up my website the layout is slightly different to when i bring it up in Internet Explorer.

1 Apr 2008, 3:50 PM
#20
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Newbie Needing SOme Help With Colour Changing

That's no surprise, especially if you have IE6. IE has many CSS bugs and oddities that make it not work the way CSS standards would indicate. It also often tries to compensate for HTML/CSS errors by displaying what it thinks you meant instead of what you actually told it; thus, incorrect code that gives the intended result in IE can break in Firefox, which displays what you tell it.