NovaArgon Posted November 26, 2007 Share Posted November 26, 2007 I have a link on my page and its blue I want to make it white then once it is clicked I want it to turn grey I seen it somewhere on w3schools but I couldnt find it again. Do any of you know? Quote Link to comment https://forums.phpfreaks.com/topic/78979-solved-changing-the-link-color-before-and-after-being-clicked/ Share on other sites More sharing options...
Isomerizer Posted November 26, 2007 Share Posted November 26, 2007 Use CSS First bit for normal color of links... .links { color: #FFFFFF; } Visited links.. .links:visted { color: #AAAAAA; } Should work i think... Quote Link to comment https://forums.phpfreaks.com/topic/78979-solved-changing-the-link-color-before-and-after-being-clicked/#findComment-399693 Share on other sites More sharing options...
NovaArgon Posted November 26, 2007 Author Share Posted November 26, 2007 Does it go in the body? Quote Link to comment https://forums.phpfreaks.com/topic/78979-solved-changing-the-link-color-before-and-after-being-clicked/#findComment-399705 Share on other sites More sharing options...
Isomerizer Posted November 26, 2007 Share Posted November 26, 2007 Head of HTML include the css.. <link href="style.css" rel="stylesheet" type="text/css" /> Put the CSS in style.css or change the location of the CSS ^ Quote Link to comment https://forums.phpfreaks.com/topic/78979-solved-changing-the-link-color-before-and-after-being-clicked/#findComment-399708 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.