Wes Gamble
2006-Oct-11 16:05 UTC
scaffold.css fieldWithErrors style - inline field support
I have a text_field in a form that is displayed inline, as: Label: Field Button I am using the standard scaffolding error layout for this form. When a validation error occurs, the field is highlighted as expected, but because of the CSS setup for the "fieldWithErrors" class, the display looks like this: Label: Field_highlighted_as_error_with_red_padding Button I know that this is because of the "display: table" setting the CSS class (see below): .fieldWithErrors { padding: 2px; background-color: red; display: table; } I would like to see my field highlighted in this way but keeping the form elements inline. Has anyone ever made this kind of change to the scaffolding error display CSS and would be willing to share their fix? Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2007-Jan-10 21:31 UTC
Re: scaffold.css fieldWithErrors style - inline field suppor
koops wrote:> Hello Wes, > > Did you ever find a solution to this problem? Care to share? I''m > facing the same thing. > > Thanks, > Ryan > > On Oct 11 2006, 8:05 am, Wes Gamble <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Haven''t found a fix yet, Ryan, sorry. Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---