On Mon, May 24, 2010 at 5:56 PM, William K. Hatch Jr. <[email protected]> wrote: > Basically, I can't get text fields or text areas to not include size and cols > attributes in the tags generated when using a form_for .... f.text_field ... > etc within my view. This results in my applied styles being over ridden by > the attribute values and, that kinda sucks. Of course I can set the > attributes, but that seems ridiculous. How can I prevent these attributes > from being generated so that the css can do it's rightful job?
You can't, and shouldn't -- they're required; see <http://www.w3.org/TR/html401/interact/forms.html#edef-TEXTAREA> That said, I've never had a problem applying CSS to tweak a textarea with those attributes, so perhaps you have a different issue? HTH, -- 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.

