Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Font color on all text changes color when clicked

Font color on all text changes color when clicked

Locked

Views: 1,167

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 Jun 2010, 1:46 AM
#1
mariasims avatar

mariasims

New Zenner

Join Date:
Jan 2010
Posts:
20
Plugin Contributions:
0

Font color on all text changes color when clicked

The font color on all of my text is changing color when clicked. It doesn't matter what page I am on. I'm assuming a tag wasn't closed off. I just don't know how to go about finding it. the site is https://www.TestMeHealth.info. I'm on 1.3.9d. I searched in the header file but couldn't find the problem. Does anyone know how to go about finding this?
thanks,
Maria

27 Jun 2010, 12:01 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Font color on all text changes color when clicked

The only change I'm seeing is the text in the Shopping Cart sdebox changes color momentarily when a link is clicked, and only in Firefox. Strange, though.

Best place to start, I think, is https://www.validator.w3.org and check your site there. Don't be surprised by the fact that your site has 167 errors. Most times, you'll find that when you fix one obvious mistake, a hundred of them will go away.

28 Jun 2010, 9:12 AM
#3
mariasims avatar

mariasims

New Zenner

Join Date:
Jan 2010
Posts:
20
Plugin Contributions:
0

Re: Font color on all text changes color when clicked

Thanks but still nothing. Now I am perplexed. If you click in the center column on the words "offers affordable" or really any of the content in the center column the color changes from grey to blue. I used firefox's developers tool to see if it had some type of style sheet issue but it looked fine. Can't seem to figure this one out. The check on the site checker you recommended just showed I need to redo my "&" in several links. any suggestions?

28 Jun 2010, 9:55 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Font color on all text changes color when clicked

I was clicking links. I see what you mean now.

I can't tell you exactly why it's doing that, but I can tell you how to fix it.

It's usually not a good idea to paste copy into Zencart pages from a WYSIWYG editor, as you did here. Those editors usually add all kinds of inline styling, which can cause weird stuff to happen. Much better to wrap that text in a <div> and style it in the stylesheet.

29 Jun 2010, 6:30 AM
#5
mariasims avatar

mariasims

New Zenner

Join Date:
Jan 2010
Posts:
20
Plugin Contributions:
0

Re: Font color on all text changes color when clicked

That would make sense if it was only happening on the 1st page but it happens on everypage from the login to the contact us to the checkout.
I didn't put any tables in on that. I can update the 1st page but the other pages shouldn't be doing the same. That's why I am so confused. lol mia

29 Jun 2010, 9:11 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Font color on all text changes color when clicked

You're right. You're missing the 'a' here:

a:active {

color: #105fac;

}

which is applying that color to all active (clicked-upon) text.

6 Jul 2010, 7:15 AM
#7
mariasims avatar

mariasims

New Zenner

Join Date:
Jan 2010
Posts:
20
Plugin Contributions:
0

Re: Font color on all text changes color when clicked

you're absolutely brilliant. Thanks so much!