Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category Sidebox -- Change Font Color on hover

Category Sidebox -- Change Font Color on hover

Locked

Views: 7,994

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 Mar 2008, 4:08 PM
#1
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Category Sidebox -- Change Font Color on hover

Hi

I changed my stylesheet to have the Category names turn from blue to red when you hover on them. I tried to make it work like Important Links and Information sideboxes. It doesn't. Even after I clear my cache, some category names come up red and other blue. Sometimes they're all blue. Other times they're all red. Inconsistent.

What did I do wrong? How do I fix it?

As an extra, I'd like to have the name go bold too on hover. My eyes are straining.

https://www.rabbitinmyhat.com
version 1.3.7
using Firefox to view

Thanks
John

22 Mar 2008, 5:10 PM
#2
fatguyinaz avatar

fatguyinaz

Zen Follower

Join Date:
Oct 2007
Location:
Safford, AZ
Posts:
313
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

Hello,

I was curious why you have it on your CSS as A.category-top

Shouldn't it be just .category-top

22 Mar 2008, 5:30 PM
#3
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

FatGuyinAZ:

Hello,

I was curious why you have it on your CSS as A.category-top

Shouldn't it be just .category-top

Hi Steve

I don't know the difference between those two. I just tried to make it look like the other sideboxes as I understood them. I'll go to w3schools and see if I can figure out the difference and if it impacts what I tried to do.

Thanks
John

22 Mar 2008, 5:54 PM
#4
fatguyinaz avatar

fatguyinaz

Zen Follower

Join Date:
Oct 2007
Location:
Safford, AZ
Posts:
313
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

LOL I don't know either. I am just learning this stuff (trying to learn). What would happen if you removed the A from all your CSS entries for that particular section? You have it a few times in a section on the CSS. If it doesn't help you can always add the A again.

Hopefully one of the Zen Cart gurus will step in and point us both in the right direction.

23 Mar 2008, 12:13 AM
#5
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

I just took a look at your stylesheet. Found your A.category-top entries. You have this in front of it: .sideBoxContent
I don't have that. I'll check the original ZC stylesheet. Maybe I inadvertently deleted it.

John

23 Mar 2008, 12:21 AM
#6
fatguyinaz avatar

fatguyinaz

Zen Follower

Join Date:
Oct 2007
Location:
Safford, AZ
Posts:
313
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

That's funny, I don't even know what I have. I will learn eventually and I will continue to make myself look funny. But it's all good. :laugh:

I wish you luck on this.

23 Mar 2008, 1:34 PM
#7
haredo avatar

haredo

Totally Zenned

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

Re: Category Sidebox -- Change Font Color on hover

johnd:

Hi

I changed my stylesheet to have the Category names turn from blue to red when you hover on them. I tried to make it work like Important Links and Information sideboxes. It doesn't. Even after I clear my cache, some category names come up red and other blue. Sometimes they're all blue. Other times they're all red.

As an extra, I'd like to have the name go bold too on hover. My eyes are straining.

J,

You have duplicated the following declarations below in your stylesheet.css

A.category-top, A.category-top:visited {
color: #004080;
text-decoration: none;
}
A.category-top, A.category-top:hover {
color: #FF0000;
text-decoration: none;
}

Delete the following and replace the two above with these:
Adjust the red letters to your needs.

A.category-top {
color: #3300FF;
text-decoration: none;
}

A.category-top:visited {
color: #000000;
text-decoration: none;
}

A:hover {
font-weight: bold;
}

11 Apr 2008, 11:34 AM
#8
johnd avatar

johnd

Zen Follower

Join Date:
Oct 2006
Location:
New Jersey, USA
Posts:
119
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

haredo

Thanks so much -- works like a charm!

John

11 Apr 2008, 3:41 PM
#9
haredo avatar

haredo

Totally Zenned

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

Re: Category Sidebox -- Change Font Color on hover

J,
you are most welcome, glad I could assist you.

20 Aug 2008, 9:39 PM
#10
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

Hello,
I have:
A.category-top, A.category-top:visited {
color: #008000;
text-decoration: none;
font-size: 1.2em;
}

A:hover {
color: #0000FF;
}

Its working, but when I hover over visited links, they won't highlight. How can I change it so that the visited links also gets highlighted? Thanks.

20 Aug 2008, 9:41 PM
#11
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Category Sidebox -- Change Font Color on hover

I figured it out! :clap:

A:hover, A:visited:hover {
color: #0000FF;
}