Try this:
a.linkCommand:hover
{
color:red;
}
Regards,
Tomas Jogin
On 7/17/05, Shelby Westman
<shelby.westman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am a bit confused about how to invoke CSS from within a link_to command.
>
> I have part of it working... My link_to command looks like this:
>
> <%= link_to "MAIN MENU", { :controller =>
"/main_admin", :action =>
> "menu" }, {:class => ''linkCommand''} %>
>
> and the excerpt from my stylesheet looks like this:
>
> .linkCommand {
> font-family: Verdana, sans-serif;
> font-weight: 900;
> font-size: 9pt;
> text-decoration: none;
> }
>
> This all works fine. However, I can''t figure out how to add link
> styles such as a:link or a:visited to this style and make it work.
>
> I tried, for example
> .linkCommand a:hover {
> color: red;
> }
>
> And that is not picked up by the view. Can anyone point me in the
> right direction?
> Thanks
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>