PDA

View Full Version : Linked headache


Brian M
April 23rd, 2008, 02:39 PM
Would you be willing to share the CSS code for the topic links on this forum.

I've set my web site up to show a:link as blue - a:visited as maroon - a:hover as red - (not using a:active)
but for some reason the links don't respond after the first visit. A page refresh does not reset them.
Other links within the same site respond as they should and are linked to the same stylesheet.

renegade600
April 23rd, 2008, 03:16 PM
what page? give a link so someone can look at the code.

Brian M
April 23rd, 2008, 04:10 PM
Not my actual coding, but this behaves in the same way.
A page refresh does not return the text to blue.
They even load as if already visited.

<html>
<head>
<style type="text/css">
a:link {text-decoration: none; color:#0000FF;}
a:visited {text-decoration: none; color:#990000;}
a:hover {text-decoration: underline; color: red;}
</style>
</head>
<body>

LINKS
<P>
<a href="http://www.yahoo.com">YAHOO</a>
<br>
<a href="http://www.google.com">GOOGLE</a>
</P>

</body>
</html>

Buzz
April 23rd, 2008, 05:19 PM
Active = hover for IE. Add an active state the same as hover.

Brian M
April 23rd, 2008, 05:44 PM
Thanks for your reply and I added the "active" state.
It made no difference to IE7 which still loads with the text as dark red.
M.F. does load with blue but after a visit will remain dark red. A page refresh or a mouse click elsewhere does not return the text to blue.
If only my links would behave in the same way they do on this forum I would be quite happy with them.
My links that do perform as they should refer to different parts of the same page.
Those causing the problem refer to other pages within the same site or to external web sites.
Could this be relevant?