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? Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.