Forums

How can I specify the background colour for field in a form?

fshock 08 Sep, 2009
Hello,

I am using 3.1 RC5. I have a form which has a file for the user to enter a captcha code. The problem is that teh field for user to enter the code is showing with a white background which makes it difficult to see. Is there a simple/easy way to set the background colour for a field on a form?

Thanks,
jwagnerbds 08 Sep, 2009
Go to the Form Code tab. Expand the Form HTML code. Find your <input> fields that you want to change. Then add the code in bold with whatever color you want.

i.e
<input class="cf_inputbox required" maxlength="150" style="background-color:#000000" size="30" title="Whateveryourtitleis!" id="text_4" name="whateveryournameis" type="text" />
fshock 11 Sep, 2009
Hello,

I checked but my situation is a little more complicated. The field that I wish to change the background color of is produced by this code in my form:

<div class="form_item">
<div class="form_element cf_captcha">
<label class="cf_label" style="width: 150px;">Security Code</label>
<span>{imageverification}</span>
</div>

Any suggestions?

Thanks.
GreyHead 11 Sep, 2009
Hi fshock,

I'm pretty certain that it still has a class set, check the form page source and take a look. The add the style directly to a css file for your site.

Bob
This topic is locked and no more replies can be posted.