Hi,
The following code is for a button to make a ajax call. I am trying to add css to the button to no avail.
<%= button_to_remote "Close sales period",:url=>{:controller=>'admin',:action=>"closure"},:class=>"button close" %>
.close_sales_period { background: url(/images/buttons/close_sales_period.gif) no-repeat; }
.button { padding:0; border:0; width:152px; height:26px; font-size:0px; cursor:pointer; text-indent:-9999px; text-transform: capitalize; color:transparent; display:inline; background-repeat:no-repeat; }
What is the correct way to do this?Any hints.