Afficher un message
Vieux 09/03/2008, 14h24   #5
John Hosking
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Want links to look like non-links

rnolty@gmail.com wrote:
> Hi -- I'm frustrated with the way :link and :visited pseudo-classes
> seem to work. In the following I would expect all 4 links to be aqua.
>
> <html>
> <head>
> <style type="text/css">
> .cls1 {color: Aqua;}
> a.cls1:visited {color: Aqua;}
> .cls2 {color: Aqua;}
> .inherit_color:visited {color: inherit;}
> </style>
> </head>
> <body>
>
> <div class="cls1"><table><tr></td>text1</tr></table><a
> href="http://google.com">link1</a></div><hr />
> <div class="cls1"><table><tr></td>text2</tr></table><a
> href="http://google.com" class="cls1">link2</a></div><hr />
> <div class="cls1"><table><tr></td>text3</tr></table><a
> href="http://google.com" class="inherit_color">link3</a></div><hr />
> <div class="cls2"><table><tr></td>text4</tr></table><a
> href="http://google.com" class="inherit_color">link4</a></div><hr />
>
> </body>
> </html>
>


http://validator.w3.org/

> Both firefox and IE make link1 the browser default color for visited
> links. Why is that? The inherit_color trick works for link3 and
> link4 on firefox but not on IE. link2 is aqua on both platforms.



http://css.maxdesign.com.au/selectutorial/ and
http://css.maxdesign.com.au/selectut...rial_step4.htm
also http://www.htmldog.com/guides/cssint...pseudoclasses/

--
John
The UIP, once agan: http://improve-usenet.org/
  Réponse avec citation
 
Page generated in 0,06714 seconds with 9 queries