plznty Posted December 11, 2009 Share Posted December 11, 2009 I have a website and on the navigation at the top the link font colours are white "#FFFFFF" and below they i want links to display as black "#000000" how can i have 2 different coloured links on a single page? Link to comment https://forums.phpfreaks.com/topic/184764-using-multiple-link-colours/ Share on other sites More sharing options...
vinpkl Posted December 11, 2009 Share Posted December 11, 2009 a.white{ color:#ffffff; } a.white:hover{ color:#ffffff; } a.black{ color:#000000; } a.black:hover{ color:#000000; } ------------------------ html <a href="#" class="white">hello</a> <a href="#" class="black">hello</a> vineet Link to comment https://forums.phpfreaks.com/topic/184764-using-multiple-link-colours/#findComment-975408 Share on other sites More sharing options...
plznty Posted December 11, 2009 Author Share Posted December 11, 2009 a.white{ color:#ffffff; } a.white:hover{ color:#ffffff; } a.black{ color:#000000; } a.black:hover{ color:#000000; } ------------------------ html <a href="#" class="white">hello</a> <a href="#" class="black">hello</a> vineet You are a god, thanks Link to comment https://forums.phpfreaks.com/topic/184764-using-multiple-link-colours/#findComment-975449 Share on other sites More sharing options...
emopoops Posted December 13, 2009 Share Posted December 13, 2009 if u have links specififed a certain color aka a:link the class doesnt change them to a different color. it only changes the hover. i just tested <style> a.white{ color:#ffffff; } a.white:hover{ color:#aaaaaa; } a:link, a:active, a:visited{color:red} a:hover{color:deeppink} </style> hi whats up <a class="white" href="#">this should be white</a> <a href="#">this be red</a> both links were RED but the hovers where different Link to comment https://forums.phpfreaks.com/topic/184764-using-multiple-link-colours/#findComment-976499 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.