daxguy Posted January 21, 2011 Share Posted January 21, 2011 I wanted to know in my page how can i change link colors of specific links.. like the links appearing on the top section as green.. the down secction blue.. or sumthing.. can we do that using any technique? i dont want to keep a single color for the links in the complete webpage? Link to comment https://forums.phpfreaks.com/topic/225136-changing-specific-link-colors/ Share on other sites More sharing options...
haku Posted January 21, 2011 Share Posted January 21, 2011 Use the ID of the section to target the links specifically. #section1 a { color:red; } #section2 a { color:blue; } #section3 a { color:green; } Link to comment https://forums.phpfreaks.com/topic/225136-changing-specific-link-colors/#findComment-1162809 Share on other sites More sharing options...
cssfreakie Posted February 5, 2011 Share Posted February 5, 2011 I wanted to know in my page how can i change link colors of specific links.. like the links appearing on the top section as green.. the down secction blue.. or sumthing.. can we do that using any technique? i dont want to keep a single color for the links in the complete webpage? maybe have a little read on classes and id's: http://www.w3schools.com/css/css_id_class.asp will help you alot when making stuff Link to comment https://forums.phpfreaks.com/topic/225136-changing-specific-link-colors/#findComment-1170202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.