Jump to content

Strikethrough


Recommended Posts

a:link{text-decoration:none; color: #000000}a:visited{text-decoration:line-through; color:#000000}a:hover{text-decoration:none; background:#cccccc; color#000000}a:active{text-decoration:line-through; background:#cccccc; color:#000000}This is my CSS for the links in my website. There will appear a grey background on mouseover and a strikethrough when the links is clicked and has been clicked. Unfortunately this strikethrough effect remains forever. Even when the visitor shut down his/her browser and visties my website again. How is this possible and can there be something done about this? I really appreciate your help.

Link to post
Share on other sites

The :visted means that the user has visit that link since the last time the browser flushed it's cache.If you do not want the strike through to stay then you should not put it on the :visited...you are defeatring hte purpose of the :visited by not wanting the styles to stay.Put the stike through on :hover or somewhere else.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...