RE: Behavior of nested Links, pseudos and style

Yup, a number of people mailed me about it. 

But

<div href="outer_link">
 outer link, 
 <span href="inner_link">
 inner link
 </span>
</div>

While leaving only this style rule:

:hover{color:red;text-decoration:underline;}

Is not really supported by browsers.

Kindest regards,

Manos






> -----Original Message-----
> From: Jelks Cabaniss [mailto:jelks@jelks.nu] 
> Sent: Thursday, January 31, 2002 4:50 PM
> To: www-style@w3.org
> Subject: RE: Behavior of nested Links, pseudos and style
> 
> 
> Manos Batsis wrote:
> 
> > <style type="text/css">
> > a:link{text-decoration:none;}
> > a:hover{color:red;text-decoration:underline;}   
> > </style>
> > 
> > And
> > 
> > <a href="outer_link">
> >   outer link, 
> >   <a href="inner_link">
> >     inner link
> >   </a>
> > </a>
> > 
> > In both Mozilla5 (Gecko/20011120) and IE6, during mouseover 
> > events on the outer link, only the non inner link changes style.
> > 
> > Is this according to spec?
> 
> The markup isn't valid.  Check it at 
> 
	http://www.htmlhelp.com/tools/validator/

or 

	http://validator.w3.org


/Jelks

Received on Thursday, 31 January 2002 10:14:05 UTC