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? Quote 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; } Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/225136-changing-specific-link-colors/#findComment-1170202 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.