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:
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
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
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
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
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