What you want is a.linkCommand:hover, etc -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Shelby Westman Sent: Monday, 18 July 2005 2:20 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] link_to and CSS 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