hassan is right
put the buttons in a div id="buttons holder" , and give it the right
length in the stylesteet of that html.
next pass a css parameter in the first button_to metheod like :class
=> "button1", and then to the second one :class=>"button2"(more
reference at http://railsapi.com/doc/rails-v2.3.5/ )
in the stylesheet give both buttons the float:left propriety, again
you have to adjust the height and lenghon of the "buttons holder div"

it shoul do the trick :)

hope it mane any difference in you app :) and pls let me know if it
did or didn't

all the best,
radu

On Jan 21, 11:51 pm, Hassan Schroeder <[email protected]>
wrote:
> On Thu, Jan 21, 2010 at 1:04 PM, Pito Salas <[email protected]> wrote:
> > <%= button_to "New", :action => "new" %><%= button_to "old", :action =>
> > "old" %>
>
> > I get two lines (naturally.) But I'd like them side by side. It must be
> > simple.
>
> `view source` is your friend: 'button_to' wraps a couple of inputs in a
> div inside a form, both the latter being normally block elements. Ergo,
> adjust your CSS to taste.  :-)
>
> --
> Hassan Schroeder ------------------------ [email protected]
> twitter: @hassan

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