Forums / Templates, Stylesheets, Page Layout / H2 (Price font) specific code

H2 (Price font) specific code

Locked

Started by agent_kgb on 12 Feb 2009, 12:20 AM · Views: 2,163

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
12 Feb 2009, 12:20 AM
#1
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

H2 (Price font) specific code

I need to change the color of my prices (right now it's white and can't be seen with white background)...

i can change the color of H2 (which is what prices are) but then it also changes the color of my headings for new items and featured items (and i'd like for them to stay white)...

i tried this... but no luck...

h2.#productprices {
	color:black;
	}

:frusty:

12 Feb 2009, 1:52 AM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: H2 (Price font) specific code

just for sake of it , you may try this ..
create a h2 tag first

h2 {
color : white;
}

now
h2.#productprices {
color:black;
}

shouldn't be effected .. thats what i assume , since no one seen your site live :unsure:

12 Feb 2009, 6:27 PM
#3
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

Re: H2 (Price font) specific code

I sort of trying to get the page up and running before i put in online)... i've tried your suggestion, but no luck ;0(

anyone has a specific tags i need to use to isolate product price colors (the one on product detail page)?

:frusty:

12 Feb 2009, 9:21 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: H2 (Price font) specific code

this should work . because is working on my system

#productPrices {
color:yourcolor;
}

make sure that price is Price , this is case sensitive ..

12 Feb 2009, 10:37 PM
#5
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

Re: H2 (Price font) specific code

thanks TONY... if i'll ever make any money off this site, i'll buy you some beer ;0):clap:

12 Feb 2009, 10:52 PM
#6
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: H2 (Price font) specific code

thanks for the offer and wish you the best with your business . and hopefully , if you make lots of money , you can alway donate to zencart :) as they are the one that needed to be thanked and not me :smile:

14 Feb 2009, 7:12 PM
#7
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

Re: H2 (Price font) specific code

Ahh... i keep running into same problem with other parts of my page...

because most of my site has white background and my h2 text has white color, i keep running into more places where some of the headers are invisible (not per my intention)...

all of this started with me needing to change color for New Products and Featured Products in main column to white (as i use red background there)....

any chance somebody can let me know the statement to use in CSS to isolate those two headers (thus letting me use something besides white for default h2 color)...

i tried firefox's web developer tool to find it... but the path is too long, and it cuts off the end of the statement (thus not letting me see the important part)...

15 Feb 2009, 1:44 AM
#8
rstevenson avatar

rstevenson

Totally Zenned

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

Re: H2 (Price font) specific code

Try using .leftBoxHeading (and .rightBoxHeading if you need it) to set your headings to white where the background is red. Then turn your general H2 selector back to black or whatever you want.

Rob

Breakfast: the most important donut of the day.

15 Feb 2009, 5:34 PM
#9
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

Re: H2 (Price font) specific code

thanks for advice... but i don't think it'll work... the Featured and New products heading are the ones i use in the main column (at the end of the product lists....)

16 Feb 2009, 8:12 PM
#10
rstevenson avatar

rstevenson

Totally Zenned

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

Re: H2 (Price font) specific code

In which case it would be .centerBoxHeading

Rob

Breakfast: the most important donut of the day.

16 Feb 2009, 8:58 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: H2 (Price font) specific code

That path in the top bar is generally useless for me too. Using the Information > Display Element Information button pops up a box that shows all of that in columnar form, for any element you click on.

16 Feb 2009, 10:02 PM
#12
agent_kgb avatar

agent_kgb

Zen Follower

Join Date:
Jan 2009
Posts:
111
Plugin Contributions:
0

Re: H2 (Price font) specific code

Thanks GLEN... i wish i would have known this a lot earlier.... it would have saved me a LOT of time!!!! :smartalec:

and ROB... not surprising, you was right as well.. :yes:

thanks to both of you guys!!!

:bigups:

:cry: