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

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 G. [email protected]

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 G. [email protected]

Haven’t found a fix yet, Ryan, sorry.

Wes

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs