That should actually work. Are you sure @var has some value ? Thanks & Regards, Dhruva Sagar.
Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." On Tue, Nov 3, 2009 at 12:40 PM, Hemant Bhargava < [email protected]> wrote: > > Hello all, > > Actually i am having a small problem.. googled it but did'nt find any > clue.. > So what i want to do is that i want to insert ruby variable in css style > property.. as like .. > <div class="abc" style="left: <%= @var * 6 %> px;"> > But this is not working.. I am doing it because i want to keep the left > property dynamic .. :) Is there any possible way to do it .. > -- > Posted via http://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 -~----------~----~----~----~------~----~------~--~---

