How to define more than one different TEXTAREA style in CSS?

Hello all, I have applied several CSS styles to my DB and have the SELECT, INPUT, TEXTAREA style defined and it works great.

What I wanted to do is define another style for a few text input fields to have a greyed out background. There are about 20 or so and I know I can put the “background-color: #E1E1E1” in the Style field of the HTML tab of the field definition; however, I would like to develop a style - that way I can change attributes in one location if and when I need to change them. Another reason is I would like the font in these fields to also be bold and I know that can only be done with CSS.

I know how to do it with pass-thru HTML, but that’s not what I’m looking for on this complicated form with several fields…

Could someone please help me out? Much thanks!

Subject: How to define more than one different TEXTAREA style in CSS?

Hi, use classes in CSS.In your CSS you specify a different INPUT class, i.ex. for required fields

INPUT.required{

background-color:;

font-weight: bold;

}

Then in your field props you say that this field is of class required.

Hope this helps

bye bye

Elvis

e.dominguez@ticino.com

Subject: How to define more than one different TEXTAREA style in CSS?

You can use classes like:

.special {

background-color: #E1E1E1;

}

.special2 {

[…]

}

and add in the tag: class=“special”.

You can also define multiple classes and combine these in the tag:

class=“special special2”

So you can mix the styles…