roughrider Posted December 16, 2005 Posted December 16, 2005 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. Ride It Like You Stole It
ozcsys Posted December 16, 2005 Posted December 16, 2005 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??
roughrider Posted December 16, 2005 Author Posted December 16, 2005 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
Guest Posted December 17, 2005 Posted December 17, 2005 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
Guest Posted December 17, 2005 Posted December 17, 2005 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
roughrider Posted December 17, 2005 Author Posted December 17, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.