Click to See Complete Forum and Search --> : Link help, please


jerrysliljess
02-23-2005, 12:12 PM
I have a website and I want to have a link be crossed out when the visitor clicks on it. Does anyone know the code? Thanks!:)

TheBearMay
02-23-2005, 12:31 PM
<style>
a:visited {
text-decoration:line-through;
}
</style>

the tree
02-23-2005, 02:26 PM
Just for interest, more on pseudo classes:<style type="text/css">
a:link {text-decoration: none;} /*No underline on link*/
a:visited {text-decoration: line-through;}/*crossed out, visited link*/
a:active {background: #000; color: #fff;}/*White on black, whilest being clicked, link*/
a:hover {text-decoration: underline}/*Underline while link is hovered.*/
</style>