Re: [css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-26 Thread Zoe M. Gillenwater
Marcelo de Moraes Serpa wrote: Hello list! I need to change these css attributes of only one element on the page, a exceptionla link that must behave differently. It is. However, I can't find a way to only select it using the pseudo-classes metioned, I tried: A:hover,#myelement { color:

Re: [css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-26 Thread Arlen Walker
On Oct 25, 2006, at 8:40 AM, Marcelo de Moraes Serpa wrote: A:hover,#myelement { color: #FFF } But every other a element on the page got selected. Depends on the markup. If the link you're hovering over has the id myelement, try: a#myelement:hover Have Fun, Arlen

Re: [css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-26 Thread Chris Ovenden
On 10/25/06, Barney Carroll [EMAIL PROTECTED] wrote: A:hover,#myelement { color: #FFF } But every other a element on the page got selected. Replace your comma ',' with a space ' ': a:hover #myelement {color:#fff;} You were also missing a semi-colon ';' :) - so many times I thought I

Re: [css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-26 Thread Barney Carroll
Hehehe. It is indeed an ugly ugly hack. IE is the only browser to pick up such definitions - others (correctly) see non-sensical syntax and carry on. Note that this is technically valid. Chris Ovenden wrote: It selects #myelement and all a:hover - comma is a separator. It is also a nifty

[css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-25 Thread Marcelo de Moraes Serpa
Hello list! I need to change these css attributes of only one element on the page, a exceptionla link that must behave differently. It is. However, I can't find a way to only select it using the pseudo-classes metioned, I tried: A:hover,#myelement { color: #FFF } But every other a element on

Re: [css-d] Change the :hover, :link, :visited and :active of a specific element based ot its ID

2006-10-25 Thread Barney Carroll
A:hover,#myelement { color: #FFF } But every other a element on the page got selected. Replace your comma ',' with a space ' ': a:hover #myelement {color:#fff;} You were also missing a semi-colon ';' :) - so many times I thought I had a massive failure on my hands when the only problems