pwes24 Posted May 1, 2008 Share Posted May 1, 2008 I have a problem with links on my site. I have used css to define the link states(hover, active etc) but once it has been clicked, it doesn't change on rollover(hover). What am I doing wrong? Here's the code: a:link { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } a:hover { font-family:Arial; font-size:12px; color: #333333; text-decoration: underline; } a:active { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } a:visited { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } Quote Link to comment https://forums.phpfreaks.com/topic/103681-solved-link-states-not-displaying-properly/ Share on other sites More sharing options...
AndyB Posted May 1, 2008 Share Posted May 1, 2008 The definitions must be in the order Link Visited Hover Active - LoVe HAte helps you remember Quote Link to comment https://forums.phpfreaks.com/topic/103681-solved-link-states-not-displaying-properly/#findComment-530874 Share on other sites More sharing options...
TheFilmGod Posted May 2, 2008 Share Posted May 2, 2008 Change to: a:link { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: underline; } Quote Link to comment https://forums.phpfreaks.com/topic/103681-solved-link-states-not-displaying-properly/#findComment-531384 Share on other sites More sharing options...
pwes24 Posted May 4, 2008 Author Share Posted May 4, 2008 Thank you everyone. It worked perfectly! Quote Link to comment https://forums.phpfreaks.com/topic/103681-solved-link-states-not-displaying-properly/#findComment-532569 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.