Is it possible to change font size or color on a field basis | Community
Skip to main content
Cecile_Maindron
Level 10
July 15, 2013
Question

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

  • July 15, 2013
  • 6 replies
  • 1796 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

July 15, 2013
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
July 15, 2013
and I just need to replace *** by name of label?
July 15, 2013
nope, just need to replace *** by the word style. on both the top & bottom. It will affect ALL required fields.
July 15, 2013
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
July 15, 2013
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.
July 15, 2013
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.