Is it possible to change font size or color on a field basis

Cecile_Maindron
Level 10

Is it possible to change font size or color on a field basis

Hi,

Let's say I want to have my mandatory labels bigger than the others and the submit button font in another color, can it be done at the form level? I can change font size and color but this applies to all the fields...

Cécile @ Talend
Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: Is it possible to change font size or color on a field basis

Sure, this is super easy. Pull a custom HTML block onto your page. Inside it put...

<**** type="text/css">
.mktFormReq{font-size:20px;}
</****>

Where **** = style

So you can say font-size is larger or color:#fff; for a new color.
If you have any specific questions let me know!
Cecile_Maindron
Level 10

Re: Is it possible to change font size or color on a field basis

and I just need to replace *** by name of label?
Anonymous
Not applicable

Re: Is it possible to change font size or color on a field basis

nope, just need to replace *** by the word style. on both the top & bottom. It will affect ALL required fields.
Anonymous
Not applicable

Re: Is it possible to change font size or color on a field basis

If you want to do it on a field by field basis, you'd need to know the id of the field.

<**** type="text/css">
.mktFormReq{font-size:20px;}
input #Email{color:#d00000;}
</****>

So if I only want Email to be changed to the color red, then...
input #Email{color:#d00000;}
Cecile_Maindron
Level 10

Re: Is it possible to change font size or color on a field basis

I want to do it on a field by field basis. If I want to do full form, I can do it directly in the form table.
thanks I'll try that.
Anonymous
Not applicable

Re: Is it possible to change font size or color on a field basis

For field by field basis, use Google Chrome & right click on the field & chose inspect element. That will show you the ID of that field.