mike1313 Posted January 4, 2008 Share Posted January 4, 2008 So in my .css I have a set color for my a:active but on certain pages I want to be able to override my default hyperlink color, what's the most effective way of doing so? Link to comment https://forums.phpfreaks.com/topic/84496-solved-changing-default-color-for-links/ Share on other sites More sharing options...
mike1313 Posted January 4, 2008 Author Share Posted January 4, 2008 I had a dumb founded moment. I solved it. Link to comment https://forums.phpfreaks.com/topic/84496-solved-changing-default-color-for-links/#findComment-430488 Share on other sites More sharing options...
SyncViews Posted January 4, 2008 Share Posted January 4, 2008 Just make a class for your alternative colours. CSS: a.header_link:link {color: #FFFFFF} a.header_link:visited {color: #FFFFFF} a.header_link:hover {color: #DDDDFF} a.header_link:active {color: #FFFF00} HTML: <a class="header_link" href="Index.php">Home</a> <span class="header_sep">:</span> Link to comment https://forums.phpfreaks.com/topic/84496-solved-changing-default-color-for-links/#findComment-430489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.