Re: [css-d] image mouseover effect with CSS not working

2005-06-16 Thread Adam Kuehn
At 6:58 AM +0100 6/16/05, Christian Heilmann wrote: > >>> Isn't the other way around? > > no > http://www.w3.org/TR/REC-CSS2/selector.html#q15 ? But this URI shows the following example: A.external:visited { color: blue } element > class > pseudo-class (the other way around seems to

Re: [css-d] image mouseover effect with CSS not working

2005-06-16 Thread Philippe Wittenbergh
On 16 Jun 2005, at 2:58 pm, Christian Heilmann wrote: Yes, I was wrong. However, in both IE and Firefox only the wrong syntax (pseudo, then class) works. Anyone knows why? All other tutorials seem to "cheat" by adding a class to the parent element (which might make more sense anyway). Unle

Re: [css-d] image mouseover effect with CSS not working

2005-06-16 Thread Ingo Chao
Ray Dickman schrieb: the code would be something like and I thought in CSS this would work: img.border a:link{border: 1px solid red} img.border a:hover{border: 3px solid red} I think what you mean to say is: a:link img.border {border: 1px solid red} a:hover img.border {border: 3px solid red}

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Christian Heilmann
> >>> Isn't the other way around? > > > > no > > http://www.w3.org/TR/REC-CSS2/selector.html#q15 > > ? > But this URI shows the following example: > A.external:visited { color: blue } > > element > class > pseudo-class > > (the other way around seems to work the same though...) Yes, I was wrong

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Thierry Koblentz
Christian Heilmann wrote: >>> Isn't the other way around? > > no > http://www.w3.org/TR/REC-CSS2/selector.html#q15 ? But this URI shows the following example: A.external:visited { color: blue } element > class > pseudo-class (the other way around seems to work the same though...) Thierry | ht

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Christian Heilmann
> > > > > > > > > a:link.border{border:1px solid red;} > > > a:hover.border{border:3px solid red;} > > > > Isn't the other way around? no http://www.w3.org/TR/REC-CSS2/selector.html#q15 __ css-discuss [EMAIL PROTECTED] http:/

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Christian Heilmann
On 6/15/05, Thierry Koblentz <[EMAIL PROTECTED]> wrote: > Christian Heilmann wrote: > > > > > > a:link.border{border:1px solid red;} > > a:hover.border{border:3px solid red;} > > Isn't the other way around? > > a.border:link {border:1px solid red;} > a.border:hover {border:3px solid red;} I

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Thierry Koblentz
Christian Heilmann wrote: > > > a:link.border{border:1px solid red;} > a:hover.border{border:3px solid red;} Isn't the other way around? a.border:link {border:1px solid red;} a.border:hover {border:3px solid red;} Thierry | http://www.TJKDesign.com _

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Christian Heilmann
> Hello, > > the code would be something like class="border"> > > and I thought in CSS this would work: > img.border a:link{border: 1px solid red} > img.border a:hover{border: 3px solid red} > but it doesn't. > what would be the proper method here? As the image is in the link and not the other

Re: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Ray Dickman
> the code would be something like class="border"> > > and I thought in CSS this would work: > > img.border a:link{border: 1px solid red} > > img.border a:hover{border: 3px solid red} Your css is saying that all a:links that are descendants of images with the class border should have

RE: [css-d] image mouseover effect with CSS not working

2005-06-15 Thread Paul Boag
OK if your code is this: There are several methods you could use. However my personal favourite would be: a:link{border: 1px solid red} a:hover{border: 3px solid red} However that will then apply this effect to all links. So you are better going for: And .border a:link{border: 1px soli