the default display mode of a form emlement is block, put it inline
form{display:inline}
On Sep 19, 1:01 pm, Shawn Tang
<shawntan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> In ruby on rails i try to force the from_tag to have a margin of 0 but
> it doesn''t seem to work. Forms always seem to have a margin inside
a
> table.
>
> <td><% form_remote_tag :url => {:controller =>
"sgpanel", :action =>
> "remove_from_cart", :id => product.id,:ad =>
product.sguser_id, :class
> => "formnomargin"} do %>
> <%= submit_tag "Remove item" , :class => "medium"
%>
>
> input.formnomargin
> {
> padding:0;
> vertical-align: bottom;
> margin:0;
>
> }
>
> input.medium
> {
> font-size:12px;
> width:85px;
> padding:0;
> vertical-align: bottom;
> margin-bottom:0;
>
> }
>
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---