how about this css?
form.button-to,
form.button-to div { display: inline; }On Apr 12, 2007, at 10:33 PM, Glenn Little wrote:
I'd like a button instead of a link, so I'm using button_to.
The problem is that button_to generates a <form> (which is
a block element) and inside that it puts a <div> (another
block element), and finally puts the <input> submit element
in that div.
How does one get the button to display completely inline?
The form is generated with a class="button-to" attribute,
and I've tried defining class button-to with display:inline.
However, I think the inner div is still forcing block
display and I don't know how to get styling info onto
that div (and at that point it seems like it might
be getting too hard to be "right").
Any ideas on a clean rails-approved approach, or should I
just go ahead and put raw form/button html into the
view code?
Thanks.
-glenn
_______________________________________________
Sdruby mailing list
[EMAIL PROTECTED]
http://lists.sdruby.com/mailman/listinfo/sdruby
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Sdruby mailing list [EMAIL PROTECTED] http://lists.sdruby.com/mailman/listinfo/sdruby
