- From: Tantek Çelik <tantek@cs.stanford.edu>
- Date: Tue, 28 Mar 2000 13:13:06 -0800
- To: Walter Ian Kaye <walter@natural-innovations.com>, MacIE-Talk@lists.boingo.com
- CC: "www-style@w3.org" <www-style@w3.org>
From: Walter Ian Kaye <walter@natural-innovations.com> Date: Tue, Mar 28, 2000, 12:48 PM > Oh Taaaaanteeeeek... ;) > > In my page I have: > > <STYLE TYPE="text/css"> > <!-- > A:link { color: #0000FF } > A:hover { color: #0000FF; background: #FFFF00; text-decoration: underline } > A:active { color: #000000; background: #999999; text-decoration: underline } > A:visited { color: #666666 } > --> > </STYLE> > > For visited links, the hover is not coloring the text blue. It worked in > 4.5, but it's not working in 5.0. > > What's up? What's up is our quality and strictness! Sounds like you actually found a bug in 4.5 that was fixed in 5.0. In your example, the :visited rule comes after the :hover rule and supercedes it since they have the same specificity. Try this (I just moved the :visited rule to immediately after the :link rule): <STYLE TYPE="text/css"> <!-- A:link { color: #0000FF } A:visited { color: #666666 } A:hover { color: #0000FF; background: #FFFF00; text-decoration: underline } A:active { color: #000000; background: #999999; text-decoration: underline } --> </STYLE> Tantek
Received on Tuesday, 28 March 2000 16:13:38 UTC