On Tue, Jan 13, 2009 at 5:55 AM, 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 via http://www.ruby-forum.com/.
>
> >
>
Try: <%= link_to_remote( "#{l.name}", :update => "right", :url =>{ :action
=> :show_stats, :ladder_id => l.id }, :html_options => {:style =>
"color:white"}) %>
This applies a style attribute to the link and the CSS then handles the
color
You can't wrap the call in divs because they won't override a link's color,
that can only be done directly to the link.

-- 
Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain

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

Reply via email to