Tuesday, 26 August 2014

CSS hover link code

/* unvisited link */
a:link {
    color: #FF0000;
}

/* visited link */
a:visited {
    color: #00FF00;
}

/* mouse over link */
a:hover {
    color: #FF00FF;
}

/* selected link */
a:active {
    color: #0000FF;
}

http://www.w3schools.com/css/css_link.asp

1 comment:

  1. Great thanks I was just looking for this! Also if you want to change the background of one menu item permenantly while you're on that page, you can add a <div id="namehere" within the list code and then change the background of that item in the CSS

    ReplyDelete