Julian Voelcker wrote:
> I have a span within a link to provide a block of colour which I want 
> to change the colour of when the mouse is hovered over the link, but am 
> getting muddled on the correct formatting of the css.
> 
> The link would appear as follows:
> 
> <a href="#"><span class="redblock">&nbsp;</span>&nbsp;Link text</a>
> 
> I would have thought this would work:
> 
> a:hover span.redblock{background-color:#AE0042;}
> 
> but is doesn't - any ideas?


But it /does/ work.

It's only IEWin that wants everything with jam on it [1], e.g. additionally
  a:hover {background-position: 0 0}

Ingo

[1] http://www.satzansatz.de/cssd/pseudocss.html#hover


-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to