cranberry
2006-Apr-06 14:41 UTC
[Rails] Quick Question: Using a CSS class statement in a link_to tag
Hi, I have a css file with lots of classes. I want different links on my page (which all use the ''link_to'' tag) to belong to different classes so that I can format their font, size, color, etc. Where or how do I use the css class name in the link_to tag? Thank you very much -- Posted via http://www.ruby-forum.com/.
njmacinnes@gmail.com
2006-Apr-06 15:00 UTC
[Rails] Quick Question: Using a CSS class statement in a link_to tag
<a href="..." class="foo"> On 06/04/06, cranberry <miriamraphael@yahoo.com> wrote:> Hi, > I have a css file with lots of classes. I want different links on my > page (which all use the ''link_to'' tag) to belong to different classes so > that I can format their font, size, color, etc. > > Where or how do I use the css class name in the link_to tag? > > Thank you very much > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Rimantas Liubertas
2006-Apr-06 15:13 UTC
[Rails] Quick Question: Using a CSS class statement in a link_to tag
> I have a css file with lots of classes. I want different links on my > page (which all use the ''link_to'' tag) to belong to different classes so > that I can format their font, size, color, etc. > > Where or how do I use the css class name in the link_to tag? ><%= link_to ''example'', {:action => "index", :id => @item}, :class => "myclass" %> Regards, Rimantas -- http://rimantas.com/