# Scaffold.css fieldWithErrors style - inline field support

**URL:** <https://www.ruby-forum.com/t/scaffold-css-fieldwitherrors-style-inline-field-support/71816>\
**Category:** Rails\
**Created:** [October 11, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/scaffold-css-fieldwitherrors-style-inline-field-support/71816 "2006-10-11T18:05:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 11, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/scaffold-css-fieldwitherrors-style-inline-field-support/71816/1 "2006-10-11T18:05:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [January 10, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/scaffold-css-fieldwitherrors-style-inline-field-support/71816/2 "2007-01-10T21:36:27Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [January 10, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/scaffold-css-fieldwitherrors-style-inline-field-support/71816/3 "2007-01-10T22:31:23Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

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

Wes
