It looks like you have a broken div. Try this:
<div id="right">
<%= link_to_remote( "#{l.name}", :update => "right", :url =>
{ :action => :show_stats, :ladder_id => l.id }) %>
</div>
Then style it in the css with:
div#right a {color: #fff}
Matt
On Jan 12, 10:55 pm, Maulin pa <[email protected]>
wrote:
> I have the following code in one of my views
>
> <div id="right"
> <%= link_to_remote( "#{l.name}", :update => "right", :url =>{ :action =>
> :show_stats, :ladder_id => l.id }) %><br>
> </div>
>
> I want to change the default color of the link from blue to white. I
> have tried using html_options like so
>
> <%= link_to_remote( "#{l.name}", :update => "right", :url =>{ :action
> => :show_stats, :ladder_id => l.id }, :html_options => {:color =>
> "white"}) %><br>
>
> I have also tried wrapping the link_to in separate div tags and changing
> the color there, but none of this has worked. The links are still the
> default blue.
>
> I am running rails 2.2.2
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---