This project is archived and is in readonly mode.

#4561 ✓wontfix
Victor Costan

Factor out hardcoded style in form div wrapping hidden inputs

Reported by Victor Costan | May 9th, 2010 @ 09:25 AM

In most circumstances, form_tag generates a

with style="margin:0;padding:0;display:inline". Using the style attribute isn't great, because the style cannot be overridden from CSS. This is a real problem for me, it's preventing me from using the CSS 3 flexible box support in Firefox.

The solution I propose is as follows: factor out the

generation into a public method in FormTagHelper, and call that method from form_tag. This way, a plugin can safely override that method to render something like
. This approach does not break existing applications.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages