View Full Version : How can I apply a text style to a visited link?


trinket
06-21-2003, 08:04 AM
Hi!

I would like all of the visited links on my site to have a strike-through style, rather than change the colour of the text. I have seen it at some other sites and I think it looks cool. How do I do this?

bellportal
06-21-2003, 08:38 AM
There are two ways in which you could implement this. One is to use a strike-through font (although this probably won't work because it is unlikely that anyone else will have the same font on their computer.

Or your best bet is to use style sheets. I don't really know much about style sheets, but I do know that it can be done.

Examine the HTML of the pages that you know have this effect and use it in yours.

HTH,

MaGiCSuN
06-21-2003, 09:01 AM
<style type="text/css">
<!--

A:link
{ text-decoration: line-through; color:#000000 }
A:visited
{ text-decoration: line-through; color:#000000 }
A:active
{ text-decoration: line-through; color:#000000 }
A:hover
{ text-decoration: line-through; color:#000000 }

-->
</style>

now all your links are black, and with a line-through. Just put above code between the <head> and </head>
you might want to take a look at this page:

http://www.lissaexplains.com/css.shtml


Love,
Mirna

trinket
06-21-2003, 09:26 AM
thanks! i'll try it and see if it works :D