Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

css hover link seem to fail when i click

Posted 13 Feb 2005 07:51:59
1
has voted
13 Feb 2005 07:51:59 shola law posted:
hello good pple of the forum i issued a css rule to define the hover state of a link:head>
<title>css</title>
<style type="text/css">
a{text-decoration:none}
a:hover{color:red;}
a:visited{color:green;}
</style>
</head>
<body>
<a href=www.metawire.org />mypage</a>
</body>
</html>

but whenever i click on the link and hit the back button, the hover state of the link just get disabled.Pls could anybody tell me why?



If u think u can u can

Replies

Replied 13 Feb 2005 20:05:52
13 Feb 2005 20:05:52 Rene Bandsma replied:
Maybe you forgot a:link and a:active?
Replied 14 Feb 2005 01:23:20
14 Feb 2005 01:23:20 Dave Thomas replied:
<pre id=code><font face=courier size=2 id=code><font color=red>
a {
color:blue;
text-decoration:none;
}
a:link a:visited a:active{color:green;}
a:hover {color:red;}

</font id=red></font id=code></pre id=code>

CSS follows rules just like any other scripting language. the correct order is as above.

U should also correct the link text

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> <pre id=code><font face=courier size=2 id=code>&lt;a href=www.metawire.org/&gt;mypage&lt;/a&gt;</font id=code></pre id=code><hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

to include your ""

so

<pre id=code><font face=courier size=2 id=code>&lt;a href="www.metawire.org/"&gt;mypage&lt;/a&gt;</font id=code></pre id=code>

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 14 Feb 2005 17:45:55
14 Feb 2005 17:45:55 shola law replied:
hello good pple of the forum am so thankful for the help once again, my primary knowledge of css really failed me this time.
Thank once again.

If u think u can u can

Reply to this topic