Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change links colour on hover


roughrider

Recommended Posts

How do I change the links colour in my header on hover different from the rest of the site hover colour.?

I've tried everything (I think) in my stylesheet but had no luck.

 

 

If you want to change it for just part of the site then you will need to add a seperate class to the stylesheet and then edit your header.php and call the new class you added

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

If you want to change it for just part of the site then you will need to add a seperate class to the stylesheet and then edit your header.php and call the new class you added

 

Richard, don't suppose you could write an example class for me and tell me where to stick it :o in the header.php? :rolleyes:

Ride It Like You Stole It

Link to comment
Share on other sites

here is an example

A.your_class_name_here {
 color: #0000FF;
}

A.your_class_name_here:hover {
 color: #FF0000;
}

 

then when you define your link you set

<a href="http://My_Link" class="your_class_name_here">My Link</a>

 

for internal links use the tep_href_link function

Link to comment
Share on other sites

My site has blue hover links but yellow for the header links only. I didn't have to create a class or add anything to my stylesheet.css

 

Just change this, in catalog/stylesheet.css

 

A.headerNavigation:hover {
 color: #FFFF99;

 

Change that color code to whatever you'd like it to be.

I use yellow for the links in the header and blue elsewhere; Click here to see what I mean. Is that what you're after?

 

Andrea

Link to comment
Share on other sites

Fantastic Mark, I can't thank you enough. Works great.

 

Andrea.

No, that's just for the header navigation. I wanted, & thanks to Mark, now have my links in my main header (Where your logo is) changing colour.

 

Arnie

Ride It Like You Stole It

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...